summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-25 00:12:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-25 00:12:09 +0000
commitd0ca4bc4e5e9dda5309fa76ef00a0cbcc0ed7785 (patch)
tree99a0a4c8f6ffef121078559cd74b218dcfe56665
parent7ec59e44ce14f2ac6673a5bad03ed588689c4e31 (diff)
do not lookup hostname "*"; khym@bga.com
-rw-r--r--usr.sbin/pppd/auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c
index 658be709314..728d9988a9e 100644
--- a/usr.sbin/pppd/auth.c
+++ b/usr.sbin/pppd/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.12 1998/01/17 20:30:17 millert Exp $ */
+/* $OpenBSD: auth.c,v 1.13 1998/04/25 00:12:08 deraadt 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.12 1998/01/17 20:30:17 millert Exp $";
+static char rcsid[] = "$OpenBSD: auth.c,v 1.13 1998/04/25 00:12:08 deraadt Exp $";
#endif
#endif
@@ -1067,7 +1067,7 @@ set_allowed_addrs(unit, addrs)
u_int32_t a;
struct hostent *hp;
- if (wo->hisaddr == 0 && *p != '!' && *p != '-'
+ if (wo->hisaddr == 0 && *p != '!' && *p != '-' && *p != '*'
&& strchr(p, '/') == NULL) {
hp = gethostbyname(p);
if (hp != NULL && hp->h_addrtype == AF_INET)