summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-04-25 00:30:27 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-04-25 00:30:27 +0000
commit4cc0a6fdfda15092c1dd00ad150b791ce0aa6b43 (patch)
treefebc5e5d4cc3ffbe80906c620d0cb55df5ec4f21 /usr.sbin
parent6abbd15028c0403263000c4def21292a3247af82 (diff)
Use ISWILD macro, not bare '*'
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pppd/auth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c
index 728d9988a9e..00fbff43790 100644
--- a/usr.sbin/pppd/auth.c
+++ b/usr.sbin/pppd/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.13 1998/04/25 00:12:08 deraadt Exp $ */
+/* $OpenBSD: auth.c,v 1.14 1998/04/25 00:30:26 millert Exp $ */
/*
* auth.c - PPP authentication and phase control.
@@ -38,7 +38,7 @@
#if 0
static char rcsid[] = "Id: auth.c,v 1.35 1997/11/27 06:49:15 paulus Exp $";
#else
-static char rcsid[] = "$OpenBSD: auth.c,v 1.13 1998/04/25 00:12:08 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: auth.c,v 1.14 1998/04/25 00:30:26 millert Exp $";
#endif
#endif
@@ -1067,8 +1067,8 @@ set_allowed_addrs(unit, addrs)
u_int32_t a;
struct hostent *hp;
- if (wo->hisaddr == 0 && *p != '!' && *p != '-' && *p != '*'
- && strchr(p, '/') == NULL) {
+ if (wo->hisaddr == 0 && *p != '!' && *p != '-' && !ISWILD(p) &&
+ strchr(p, '/') == NULL) {
hp = gethostbyname(p);
if (hp != NULL && hp->h_addrtype == AF_INET)
a = *(u_int32_t *)hp->h_addr;