]> git.ozlabs.org Git - ppp.git/commitdiff
don't try to look up * as a hostname
authorPaul Mackerras <paulus@samba.org>
Mon, 2 Nov 1998 10:55:19 +0000 (10:55 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 2 Nov 1998 10:55:19 +0000 (10:55 +0000)
pppd/auth.c

index 7ada83afc8e56973b5059dc812e7cac3716da326..7b1ba5ccdd9d4d40d7bb40e3ceb9cf3eac0018c7 100644 (file)
@@ -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 <stdio.h>
@@ -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;