mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Another fix related to pr#bin/2585 . That'll teach me to
grep h_length *.c ...
This commit is contained in:
parent
184989c210
commit
b5b04da46d
1 changed files with 2 additions and 1 deletions
|
|
@ -347,7 +347,8 @@ interface : ADDR { $$ = $1; }
|
|||
addrname : ADDR { $$ = $1; }
|
||||
| STRING { struct hostent *hp;
|
||||
|
||||
if ((hp = gethostbyname($1)) == NULL)
|
||||
if ((hp = gethostbyname($1)) == NULL ||
|
||||
hp->h_length != sizeof($$))
|
||||
fatal("No such host %s", $1);
|
||||
|
||||
if (hp->h_addr_list[1])
|
||||
|
|
|
|||
Loading…
Reference in a new issue