From: Paul Mackerras Date: Mon, 2 Nov 1998 10:55:19 +0000 (+0000) Subject: don't try to look up * as a hostname X-Git-Tag: RELEASE_2_3_6~48 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=66787f54548cc1e3b7934026ddaa956253073e39 don't try to look up * as a hostname --- 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;