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;
        }
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to