summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-05-26 22:47:41 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-05-26 22:47:41 +0000
commit15e1057659876895d1ad8e4989acadfaf950686c (patch)
tree5f8d13a448a15059e97a8a5950961b3adae141c7 /sys/netinet/tcp_input.c
parent937a003fd8ec5be9cff5570858fd7cb9f9f9bb35 (diff)
use sa_family not inp; netbsd merge error; ok dhartmei
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 2a35751efa5..d00eca42322 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.168 2004/05/21 11:36:23 markus Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.169 2004/05/26 22:47:40 markus Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -3680,7 +3680,7 @@ syn_cache_get(src, dst, th, hlen, tlen, so, m)
/*
* Give the new socket our cached route reference.
*/
- if (inp)
+ if (src->sa_family == AF_INET)
inp->inp_route = sc->sc_route4; /* struct assignment */
#ifdef INET6
else