diff options
author | fenner <fenner@FreeBSD.org> | 1997-02-10 06:46:37 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1997-02-10 06:46:37 +0000 |
commit | 4c199a227a4f174400e797cbc27d94848018e3a2 (patch) | |
tree | 5d3b2e93678315044b988ef75b878f742e901d30 /usr.sbin/mrouted | |
parent | 57d260df48d14ff97548a20b9aff1afba08a7c42 (diff) | |
download | FreeBSD-src-4c199a227a4f174400e797cbc27d94848018e3a2.zip FreeBSD-src-4c199a227a4f174400e797cbc27d94848018e3a2.tar.gz |
Another fix related to pr#bin/2585 . That'll teach me to
grep h_length *.c ...
Diffstat (limited to 'usr.sbin/mrouted')
-rw-r--r-- | usr.sbin/mrouted/cfparse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y index 2da4da3..b97bbed 100644 --- a/usr.sbin/mrouted/cfparse.y +++ b/usr.sbin/mrouted/cfparse.y @@ -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]) |