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

Reply via email to