Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2010 16:51:52 +0000 (UTC)
From:      Christian Brueffer <brueffer@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r202630 - stable/8/lib/libc/rpc
Message-ID:  <201001191651.o0JGpqlX049917@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brueffer
Date: Tue Jan 19 16:51:51 2010
New Revision: 202630
URL: http://svn.freebsd.org/changeset/base/202630

Log:
  MFC: r201603
  
  Fix a double free().

Modified:
  stable/8/lib/libc/rpc/getnetpath.c
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/stdtime/   (props changed)

Modified: stable/8/lib/libc/rpc/getnetpath.c
==============================================================================
--- stable/8/lib/libc/rpc/getnetpath.c	Tue Jan 19 15:34:16 2010	(r202629)
+++ stable/8/lib/libc/rpc/getnetpath.c	Tue Jan 19 16:51:51 2010	(r202630)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001191651.o0JGpqlX049917>