svn commit: r202631 - stable/7/lib/libc/rpc

Christian Brueffer brueffer at FreeBSD.org
Tue Jan 19 16:58:51 UTC 2010


Author: brueffer
Date: Tue Jan 19 16:58:50 2010
New Revision: 202631
URL: http://svn.freebsd.org/changeset/base/202631

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

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

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


More information about the svn-src-all mailing list