From 3f3423a0ef2db6b70057b183c47b8972e81a9ce4 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Mon, 22 Sep 2014 16:06:37 +0000 Subject: [PATCH] #553 gethost needs to zero entire IP address structure Approved by: glebius (mentor) Obtained from: ipfilter CVS repo (r1.11) --- contrib/ipfilter/lib/gethost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/ipfilter/lib/gethost.c b/contrib/ipfilter/lib/gethost.c index 0206e87180cf..14099e25c372 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);