summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd/auth.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-01-02 04:15:59 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-01-02 04:15:59 +0000
commitcbcf46f2a7c941c84070da8b53218bd8702c1284 (patch)
treea11a7f839bcb7e930d1902ca3f1a9d62a26bc265 /usr.sbin/pppd/auth.c
parent268159e5b818f923cabe59a928a162c59be75a81 (diff)
Fine, I'm convinced -- don't set the mask to ~0.
Diffstat (limited to 'usr.sbin/pppd/auth.c')
-rw-r--r--usr.sbin/pppd/auth.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c
index fd12cf11ab9..fb90ba01af5 100644
--- a/usr.sbin/pppd/auth.c
+++ b/usr.sbin/pppd/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.17 2001/01/01 09:30:42 angelos Exp $ */
+/* $OpenBSD: auth.c,v 1.18 2001/01/02 04:15:58 angelos Exp $ */
/*
* auth.c - PPP authentication and phase control.
@@ -38,7 +38,7 @@
#if 0
static char rcsid[] = "Id: auth.c,v 1.37 1998/03/26 04:46:03 paulus Exp $";
#else
-static char rcsid[] = "$OpenBSD: auth.c,v 1.17 2001/01/01 09:30:42 angelos Exp $";
+static char rcsid[] = "$OpenBSD: auth.c,v 1.18 2001/01/02 04:15:58 angelos Exp $";
#endif
#endif
@@ -1236,9 +1236,8 @@ ip_addr_check(addr, addrs)
}
hp = gethostbyname(ptr_word);
- if (hp != NULL && hp->h_addrtype == AF_INET && hp->h_name != NULL) {
+ if (hp != NULL && hp->h_addrtype == AF_INET) {
ina.s_addr = *(u_int32_t *)hp->h_addr;
- mask = ~ (u_int32_t) 0; /* are we sure we want this? */
} else {
np = getnetbyname (ptr_word);
if (np != NULL && np->n_addrtype == AF_INET)