#553 gethost needs to zero entire IP address structure

Approved by:	glebius (mentor)
Obtained from:	ipfilter CVS repo (r1.11)
This commit is contained in:
Cy Schubert 2014-09-22 16:06:37 +00:00
parent c5c5a79fce
commit 3f3423a0ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271971

View File

@ -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);