#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:
parent
c5c5a79fce
commit
3f3423a0ef
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user