Author: cy
Date: Mon Sep 22 16:06:37 2014
New Revision: 271971
URL: http://svnweb.freebsd.org/changeset/base/271971

Log:
  #553 gethost needs to zero entire IP address structure
  
  Approved by:  glebius (mentor)
  Obtained from:        ipfilter CVS repo (r1.11)

Modified:
  head/contrib/ipfilter/lib/gethost.c

Modified: head/contrib/ipfilter/lib/gethost.c
==============================================================================
--- head/contrib/ipfilter/lib/gethost.c Mon Sep 22 16:03:29 2014        
(r271970)
+++ head/contrib/ipfilter/lib/gethost.c Mon Sep 22 16:06:37 2014        
(r271971)
@@ -19,6 +19,7 @@ int gethost(family, name, hostp)
        struct netent *n;
        u_32_t addr;
 
+       bzero(hostp, sizeof(*hostp));
        if (!strcmp(name, "test.host.dots")) {
                if (family == AF_INET) {
                        hostp->in4.s_addr = htonl(0xfedcba98);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to