[canohost.c]
     add debug message, since sshd blocks here if DNS is not available
This commit is contained in:
Ben Lindstrom 2001-02-10 21:39:49 +00:00
parent 075390a3f8
commit 874a0b364c
2 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,9 @@
- markus@cvs.openbsd.org 2001/02/8 22:37:10
[canohost.c]
remove last call to sprintf; ok deraadt@
- markus@cvs.openbsd.org 2001/02/10 1:33:32
[canohost.c]
add debug message, since sshd blocks here if DNS is not available
20010210
- (djm) Sync sftp and scp stuff from OpenBSD:
@ -3792,4 +3795,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.715 2001/02/10 21:34:46 mouring Exp $
$Id: ChangeLog,v 1.716 2001/02/10 21:39:49 mouring Exp $

View File

@ -12,7 +12,7 @@
*/
#include "includes.h"
RCSID("$OpenBSD: canohost.c,v 1.22 2001/02/08 22:37:10 markus Exp $");
RCSID("$OpenBSD: canohost.c,v 1.23 2001/02/10 01:33:32 markus Exp $");
#include "packet.h"
#include "xmalloc.h"
@ -71,6 +71,7 @@ get_remote_hostname(int socket, int reverse_mapping_check)
NULL, 0, NI_NUMERICHOST) != 0)
fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed");
debug("Trying to reverse map address %.100s.", ntop);
/* Map the IP address to a host name. */
if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name),
NULL, 0, NI_NAMEREQD) != 0) {