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

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Mar 10 00:59:05 PST 2012


commit e5154c077a9a6b44f33de8550dcb5d7102d06cc3
Author: Sascha Wildner <saw at 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





More information about the Commits mailing list