mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
#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;
|
||||
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…
Reference in New Issue
Block a user