DragonFly BSD
DragonFly commits List (threaded) for 2013-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 May 2013 06:56:51 -0700 (PDT)

commit 21b7d68bd52a2bbe44cc582dc1ca31de580718cb
Author: Sepherosa Ziehau <sephe@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]