summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Auth.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Auth.pm')
-rw-r--r--Bugzilla/Auth.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm
index ab741965a..7775a03c9 100644
--- a/Bugzilla/Auth.pm
+++ b/Bugzilla/Auth.pm
@@ -221,7 +221,8 @@ sub _handle_login_result {
# For IPv6 we'll need to use inet_pton which requires Perl 5.12.
my $n = inet_aton($address);
if ($n) {
- $address = gethostbyaddr($n, AF_INET) . " ($address)"
+ my $host = gethostbyaddr($n, AF_INET);
+ $address = "$host ($address)" if $host;
}
my $vars = {
locked_user => $user,