summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2014-01-07 17:07:45 +0000
committermikeb <mikeb@openbsd.org>2014-01-07 17:07:45 +0000
commitf4d1af37ddeedade34d3da50938b4ff46c639458 (patch)
tree2a687f228edadee91ce388f6ccf3fe1a90e46404 /sys/netinet/tcp_input.c
parentSome follow-up fixes for IFID collision handling in IPv6CP. (diff)
downloadwireguard-openbsd-f4d1af37ddeedade34d3da50938b4ff46c639458.tar.xz
wireguard-openbsd-f4d1af37ddeedade34d3da50938b4ff46c639458.zip
Propagate an rdomain number to the nd6_lookup independently from
the ifp pointer which can be NULL. This prevents a crash reported by David Hill <dhill at mindcry ! org>. OK bluhm
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index d9b274a437e..65f6804d54f 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.269 2013/10/20 11:03:01 phessler Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.270 2014/01/07 17:07:45 mikeb Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -148,7 +148,8 @@ struct timeval tcp_ackdrop_ppslim_last;
do { \
if (tp && tp->t_inpcb && (tp->t_inpcb->inp_flags & INP_IPV6) && \
tp->t_inpcb->inp_route6.ro_rt) { \
- nd6_nud_hint(tp->t_inpcb->inp_route6.ro_rt, NULL, 0); \
+ nd6_nud_hint(tp->t_inpcb->inp_route6.ro_rt, NULL, 0, \
+ tp->t_inpcb->inp_rtableid); \
} \
} while (0)
#else