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

git: svc_vc_create(3): Initialize xprt with NULL.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 10 Mar 2012 00:59:05 -0800 (PST)

commit e5154c077a9a6b44f33de8550dcb5d7102d06cc3
Author: Sascha Wildner <saw@online.de>
Date:   Sat Mar 10 09:27:36 2012 +0100

    svc_vc_create(3): Initialize xprt with NULL.
    
    In the (corner-)case of being out of memory, this prevents free() to be
    called on an uninitialized xprt below the cleanup_svc_vc_create: label.

Summary of changes:
 lib/libc/rpc/svc_vc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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


-- 
DragonFly BSD source repository



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