svn commit: r272986 - stable/10/contrib/ipfilter/lib

Cy Schubert cy at FreeBSD.org
Sun Oct 12 16:48:23 UTC 2014


Author: cy
Date: Sun Oct 12 16:48:22 2014
New Revision: 272986
URL: https://svnweb.freebsd.org/changeset/base/272986

Log:
  MFC r271971
  
  Fix ipfilter bug #553 gethost needs to zero entire IP address structure.
  
  Obtained from:	ipfilter CVS repo (r1.11)

Modified:
  stable/10/contrib/ipfilter/lib/gethost.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/ipfilter/lib/gethost.c
==============================================================================
--- stable/10/contrib/ipfilter/lib/gethost.c	Sun Oct 12 16:46:03 2014	(r272985)
+++ stable/10/contrib/ipfilter/lib/gethost.c	Sun Oct 12 16:48:22 2014	(r272986)
@@ -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