svn commit: r299922 - head/lib/libc/net

Don Lewis truckman at FreeBSD.org
Mon May 16 08:13:31 UTC 2016


Author: truckman
Date: Mon May 16 08:13:30 2016
New Revision: 299922
URL: https://svnweb.freebsd.org/changeset/base/299922

Log:
  Don't call free_addrselectpolicy(&policyhead) before policyhead has been
  initialized.
  
  Reported by:	Coverity
  CID:		1018727

Modified:
  head/lib/libc/net/name6.c

Modified: head/lib/libc/net/name6.c
==============================================================================
--- head/lib/libc/net/name6.c	Mon May 16 08:07:32 2016	(r299921)
+++ head/lib/libc/net/name6.c	Mon May 16 08:13:30 2016	(r299922)
@@ -655,7 +655,6 @@ _hpreorder(struct hostent *hp)
 #endif
 		break;
 	default:
-		free_addrselectpolicy(&policyhead);
 		return hp;
 	}
 


More information about the svn-src-all mailing list