syncache: Avoid NULL accessing to tcpcb of the to-be-dropped syncache
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 20 May 2013 13:44:32 +0000 (21:44 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 20 May 2013 13:54:16 +0000 (21:54 +0800)
commit21b7d68bd52a2bbe44cc582dc1ca31de580718cb
tree5f6b69a44c61a310e560922c5d26544f435010dc
parenta4ca5deedc393506f15f9fc19b1361d089a88731
syncache: Avoid NULL accessing to tcpcb of the to-be-dropped syncache

It is possible that the syncache tcpcb is NULL when overflow happens,
e.g. the corresponding listen socket was closed but the timeout has
not recollected the staled syncache yet.
sys/netinet/tcp_syncache.c