summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index e707cf654..2bdda7298 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.330 2006/03/25 13:17:02 djm Exp $ */ 1/* $OpenBSD: sshd.c,v 1.331 2006/06/01 09:21:48 markus Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1671,7 +1671,13 @@ main(int ac, char **av)
1671 * We use get_canonical_hostname with usedns = 0 instead of 1671 * We use get_canonical_hostname with usedns = 0 instead of
1672 * get_remote_ipaddr here so IP options will be checked. 1672 * get_remote_ipaddr here so IP options will be checked.
1673 */ 1673 */
1674 remote_ip = get_canonical_hostname(0); 1674 (void) get_canonical_hostname(0);
1675 /*
1676 * The rest of the code depends on the fact that
1677 * get_remote_ipaddr() caches the remote ip, even if
1678 * the socket goes away.
1679 */
1680 remote_ip = get_remote_ipaddr();
1675 1681
1676#ifdef SSH_AUDIT_EVENTS 1682#ifdef SSH_AUDIT_EVENTS
1677 audit_connection_from(remote_ip, remote_port); 1683 audit_connection_from(remote_ip, remote_port);