Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2014 16:06:37 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r271971 - head/contrib/ipfilter/lib
Message-ID:  <201409221606.s8MG6bbu071212@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409221606.s8MG6bbu071212>