#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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271971
@ -19,6 +19,7 @@ int gethost(family, name, hostp)
|
|||||||
struct netent *n;
|
struct netent *n;
|
||||||
u_32_t addr;
|
u_32_t addr;
|
||||||
|
|
||||||
|
bzero(hostp, sizeof(*hostp));
|
||||||
if (!strcmp(name, "test.host.dots")) {
|
if (!strcmp(name, "test.host.dots")) {
|
||||||
if (family == AF_INET) {
|
if (family == AF_INET) {
|
||||||
hostp->in4.s_addr = htonl(0xfedcba98);
|
hostp->in4.s_addr = htonl(0xfedcba98);
|
||||||
|
Loading…
Reference in New Issue
Block a user