diff options
author | brueffer <brueffer@FreeBSD.org> | 2010-01-05 20:18:41 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2010-01-05 20:18:41 +0000 |
commit | bdeb978682602f230c0327f6bc99de24fce20ec0 (patch) | |
tree | df8d7211d20cb2b081c8b87b1aed4b017c757caa /lib/libc/rpc/getnetpath.c | |
parent | e1cc3e0a9a5c7503ef2c272b49dc16edd66ffb1f (diff) | |
download | FreeBSD-src-bdeb978682602f230c0327f6bc99de24fce20ec0.zip FreeBSD-src-bdeb978682602f230c0327f6bc99de24fce20ec0.tar.gz |
Fix a double free().
PR: 142339
Submitted by: Henning Petersen <henning.petersen@t-online.de>
MFC after: 2 weeks
Diffstat (limited to 'lib/libc/rpc/getnetpath.c')
-rw-r--r-- | lib/libc/rpc/getnetpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/getnetpath.c b/lib/libc/rpc/getnetpath.c index 0563544..d1ea554 100644 --- a/lib/libc/rpc/getnetpath.c +++ b/lib/libc/rpc/getnetpath.c @@ -101,7 +101,7 @@ setnetpath() if ((np_sessionp->nc_handlep = setnetconfig()) == NULL) { free(np_sessionp); syslog (LOG_ERR, "rpc: failed to open " NETCONFIG); - goto failed; + return (NULL); } np_sessionp->valid = NP_VALID; np_sessionp->ncp_list = NULL; |