git: syncache: Avoid NULL accessing to tcpcb of the to-be-dropped syncache

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon May 20 06:56:51 PDT 2013


commit 21b7d68bd52a2bbe44cc582dc1ca31de580718cb
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon May 20 21:44:32 2013 +0800

    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.

Summary of changes:
 sys/netinet/tcp_syncache.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/21b7d68bd52a2bbe44cc582dc1ca31de580718cb


-- 
DragonFly BSD source repository



More information about the Commits mailing list