From b5b04da46db0e7243a09edda87d34b1e6aa7fc19 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Mon, 10 Feb 1997 06:46:37 +0000 Subject: [PATCH] Another fix related to pr#bin/2585 . That'll teach me to grep h_length *.c ... --- usr.sbin/mrouted/cfparse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y index 2da4da36fcc6..b97bbed72265 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])