summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2006-03-14 00:15:40 +0000
committerDamien Miller <djm@cvs.openbsd.org>2006-03-14 00:15:40 +0000
commit8a910292291bad1e7f136460ea9a889970017ed5 (patch)
tree2f1014b36204646bca8ecca91bbe0bc3965d2bcc
parentc11b9a88bd7d5756820af7efbea8daf4b6a3b94f (diff)
log the originating address and not just the name when a reverse
mapping check fails, requested by linux AT linuon.com
-rw-r--r--usr.bin/ssh/canohost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/canohost.c b/usr.bin/ssh/canohost.c
index 0651ba77ab2..60b25db2519 100644
--- a/usr.bin/ssh/canohost.c
+++ b/usr.bin/ssh/canohost.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: canohost.c,v 1.49 2006/02/22 00:04:44 stevesk Exp $");
+RCSID("$OpenBSD: canohost.c,v 1.50 2006/03/14 00:15:39 djm Exp $");
#include <ctype.h>
@@ -99,7 +99,7 @@ get_remote_hostname(int sock, int use_dns)
hints.ai_socktype = SOCK_STREAM;
if (getaddrinfo(name, NULL, &hints, &aitop) != 0) {
logit("reverse mapping checking getaddrinfo for %.700s "
- "failed - POSSIBLE BREAK-IN ATTEMPT!", name);
+ "[%s] failed - POSSIBLE BREAK-IN ATTEMPT!", name, ntop);
return xstrdup(ntop);
}
/* Look for the address from the list of addresses. */