From 66787f54548cc1e3b7934026ddaa956253073e39 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Mon, 2 Nov 1998 10:55:19 +0000 Subject: [PATCH] don't try to look up * as a hostname --- pppd/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pppd/auth.c b/pppd/auth.c index 7ada83a..7b1ba5c 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: auth.c,v 1.37 1998/03/26 04:46:03 paulus Exp $"; +static char rcsid[] = "$Id: auth.c,v 1.38 1998/11/02 10:55:19 paulus Exp $"; #endif #include @@ -1157,7 +1157,7 @@ set_allowed_addrs(unit, addrs) u_int32_t a; struct hostent *hp; - if (*p != '!' && *p != '-' && strchr(p, '/') == NULL) { + if (*p != '!' && *p != '-' && *p != '*' && strchr(p, '/') == NULL) { hp = gethostbyname(p); if (hp != NULL && hp->h_addrtype == AF_INET) a = *(u_int32_t *)hp->h_addr; -- 2.39.2