summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd/auth.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-11-13 06:19:52 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-11-13 06:19:52 +0000
commite6f716de1f9d54a24f64338bb07cbe082b929e9a (patch)
tree85c11217a83627084e21af2b5f47c0093f56827e /usr.sbin/pppd/auth.c
parenta30f440865ddd008eb3b2be8fa59d5cc2c1dd999 (diff)
remove networks(5) support; it wasn't even documented to exist;
"just go ahead" deraadt@
Diffstat (limited to 'usr.sbin/pppd/auth.c')
-rw-r--r--usr.sbin/pppd/auth.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c
index ea655015fbf..6837010f532 100644
--- a/usr.sbin/pppd/auth.c
+++ b/usr.sbin/pppd/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.32 2011/10/02 06:25:53 nicm Exp $ */
+/* $OpenBSD: auth.c,v 1.33 2014/11/13 06:19:51 schwarze Exp $ */
/*
* auth.c - PPP authentication and phase control.
@@ -1227,7 +1227,6 @@ ip_addr_check(addr, addrs)
int accept, r = 1;
char *ptr_word, *ptr_mask;
struct hostent *hp;
- struct netent *np;
/* don't allow loopback or multicast address */
if (bad_ip_adrs(addr))
@@ -1270,11 +1269,7 @@ ip_addr_check(addr, addrs)
if (hp != NULL && hp->h_addrtype == AF_INET) {
ina.s_addr = *(u_int32_t *)hp->h_addr;
} else {
- np = getnetbyname (ptr_word);
- if (np != NULL && np->n_addrtype == AF_INET)
- ina.s_addr = htonl (np->n_net);
- else
- r = inet_aton (ptr_word, &ina);
+ r = inet_aton (ptr_word, &ina);
if (ptr_mask == NULL) {
/* calculate appropriate mask for net */
ah = ntohl(ina.s_addr);