Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 05:07:14 +0000 (UTC)
From:      Don Lewis <truckman@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r300452 - stable/10/lib/libc/net
Message-ID:  <201605230507.u4N57EAI081265@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: truckman
Date: Mon May 23 05:07:13 2016
New Revision: 300452
URL: https://svnweb.freebsd.org/changeset/base/300452

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

Modified:
  stable/10/lib/libc/net/name6.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/net/name6.c
==============================================================================
--- stable/10/lib/libc/net/name6.c	Mon May 23 04:52:27 2016	(r300451)
+++ stable/10/lib/libc/net/name6.c	Mon May 23 05:07:13 2016	(r300452)
@@ -655,7 +655,6 @@ _hpreorder(struct hostent *hp)
 #endif
 		break;
 	default:
-		free_addrselectpolicy(&policyhead);
 		return hp;
 	}
 



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