svn commit: r271971 - head/contrib/ipfilter/lib

Cy Schubert cy at FreeBSD.org
Mon Sep 22 16:06:38 UTC 2014


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);


More information about the svn-src-all mailing list