]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Before dereferencing intotw() when INP_TIMEWAIT, check for inp_ppcb being
authorrwatson <rwatson@FreeBSD.org>
Tue, 4 Apr 2006 12:26:07 +0000 (12:26 +0000)
committerrwatson <rwatson@FreeBSD.org>
Tue, 4 Apr 2006 12:26:07 +0000 (12:26 +0000)
commit2e3d21db7b554ea3c353bf7f436a3adcc1d0a40a
tree3ae678c38dc3a2f611a58b8c87c8c1104c4a32b7
parentc728727d1bde760303ed2b7f1503985cf5d06ede
Before dereferencing intotw() when INP_TIMEWAIT, check for inp_ppcb being
NULL.  We currently do allow this to happen, but may want to remove that
possibility in the future.  This case can occur when a socket is left
open after TCP wraps up, and the timewait state is recycled.  This will
be cleaned up in the future.

Found by: Kazuaki Oda <kaakun at highway dot ne dot jp>
MFC after: 3 months
sys/netinet/in_pcb.c
sys/netinet/tcp_input.c
sys/netinet/tcp_reass.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_timewait.c