summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2014-09-22 16:06:37 +0000
committercy <cy@FreeBSD.org>2014-09-22 16:06:37 +0000
commitac03311bc509bc87b49989ccb82532a152e4ef67 (patch)
tree6314ed1dcb1562e10bb125bbdf5c28f43e89c845 /contrib/ipfilter
parent5d69c962d9b562ec1b72d23b1afa104519ebb6cf (diff)
downloadFreeBSD-src-ac03311bc509bc87b49989ccb82532a152e4ef67.zip
FreeBSD-src-ac03311bc509bc87b49989ccb82532a152e4ef67.tar.gz
#553 gethost needs to zero entire IP address structure
Approved by: glebius (mentor) Obtained from: ipfilter CVS repo (r1.11)
Diffstat (limited to 'contrib/ipfilter')
-rw-r--r--contrib/ipfilter/lib/gethost.c1
1 files changed, 1 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud