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

git: kernel/netgraph: Set resp to NULL if it is kfree()'d in the switch case.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Dec 2011 13:11:40 -0800 (PST)

commit a21e70908d865ddedb1548272e8b26298838981a
Author: Sascha Wildner <saw@online.de>
Date:   Wed Dec 7 22:11:09 2011 +0100

    kernel/netgraph: Set resp to NULL if it is kfree()'d in the switch case.
    
    This will prevent a later kfree() in the function from freeing it again.

Summary of changes:
 sys/netgraph/ksocket/ng_ksocket.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a21e70908d865ddedb1548272e8b26298838981a


-- 
DragonFly BSD source repository



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