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

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon May 20 06:58:04 PDT 2013


commit b0c171545f8a936818d54914d04217516577a09a
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/b0c171545f8a936818d54914d04217516577a09a


-- 
DragonFly BSD source repository


More information about the Commits mailing list