From e95de0dcc58409e4c25981fc2d16ac1ddd56b270 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 12 Oct 2014 16:48:22 +0000 Subject: MFC r271971 Fix ipfilter bug #553 gethost needs to zero entire IP address structure. Obtained from: ipfilter CVS repo (r1.11) --- contrib/ipfilter/lib/gethost.c | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/ipfilter') diff --git a/contrib/ipfilter/lib/gethost.c b/contrib/ipfilter/lib/gethost.c index 0206e87..14099e2 100644 --- a/contrib/ipfilter/lib/gethost.c +++ b/contrib/ipfilter/lib/gethost.c @@ -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); -- cgit v1.1