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

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


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


-- 
DragonFly BSD source repository





More information about the Commits mailing list