summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-10-03 18:23:44 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-10-03 18:23:44 +1000
commitb0b12296f9c781e896fecbcab0ecd8223ecacc0a (patch)
treeec3e5c36993e5ad08e0e13dc74b322e9ab3c23c6
parent28e8e59b3560e364e9bee758b2e4b2f987683267 (diff)
- dtucker@cvs.openbsd.org 2005/10/03 07:44:42
[canohost.c] Relocate check_ip_options call to prevent logging of garbage for connections with IP options set. bz#1092 from David Leonard, "looks good" deraadt@
-rw-r--r--ChangeLog7
-rw-r--r--canohost.c8
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 01a6f23d0..1a8a105d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,11 @@
39 - jaredy@cvs.openbsd.org 2005/09/30 20:34:26 39 - jaredy@cvs.openbsd.org 2005/09/30 20:34:26
40 [ssh-keyscan.1] 40 [ssh-keyscan.1]
41 deploy .An -nosplit; ok jmc 41 deploy .An -nosplit; ok jmc
42 - dtucker@cvs.openbsd.org 2005/10/03 07:44:42
43 [canohost.c]
44 Relocate check_ip_options call to prevent logging of garbage for
45 connections with IP options set. bz#1092 from David Leonard,
46 "looks good" deraadt@
42 47
4320050930 4820050930
44 - (dtucker) [openbsd-compat/openbsd-compat.h] Bug #1096: Add prototype 49 - (dtucker) [openbsd-compat/openbsd-compat.h] Bug #1096: Add prototype
@@ -3079,4 +3084,4 @@
3079 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 3084 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
3080 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 3085 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
3081 3086
3082$Id: ChangeLog,v 1.3913 2005/10/03 08:20:28 dtucker Exp $ 3087$Id: ChangeLog,v 1.3914 2005/10/03 08:23:44 dtucker Exp $
diff --git a/canohost.c b/canohost.c
index c27086bfd..0c4d36ff6 100644
--- a/canohost.c
+++ b/canohost.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: canohost.c,v 1.44 2005/06/17 02:44:32 djm Exp $"); 15RCSID("$OpenBSD: canohost.c,v 1.45 2005/10/03 07:44:42 dtucker Exp $");
16 16
17#include "packet.h" 17#include "packet.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
@@ -43,9 +43,6 @@ get_remote_hostname(int sock, int use_dns)
43 cleanup_exit(255); 43 cleanup_exit(255);
44 } 44 }
45 45
46 if (from.ss_family == AF_INET)
47 check_ip_options(sock, ntop);
48
49 ipv64_normalise_mapped(&from, &fromlen); 46 ipv64_normalise_mapped(&from, &fromlen);
50 47
51 if (from.ss_family == AF_INET6) 48 if (from.ss_family == AF_INET6)
@@ -55,6 +52,9 @@ get_remote_hostname(int sock, int use_dns)
55 NULL, 0, NI_NUMERICHOST) != 0) 52 NULL, 0, NI_NUMERICHOST) != 0)
56 fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); 53 fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed");
57 54
55 if (from.ss_family == AF_INET)
56 check_ip_options(sock, ntop);
57
58 if (!use_dns) 58 if (!use_dns)
59 return xstrdup(ntop); 59 return xstrdup(ntop);
60 60