diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-06 19:17:07 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-06 19:17:07 +0000 |
commit | 1a777936c6cbf0c7ed35158034ef218d0c82e262 (patch) | |
tree | d2ba98075ae76d9a441b81276a07c3153eb606cb /usr.sbin/pppd/auth.c | |
parent | 4216a5f797e8a015eb91bd835c9f62033f07f6e3 (diff) |
Fix mangling in assignment of np->n_net to ina.s_addr.
Presumably this was added to deal with 64-bit machines but
it is a) wrong and b) not necesary now that we use in_addr_t.
Diffstat (limited to 'usr.sbin/pppd/auth.c')
-rw-r--r-- | usr.sbin/pppd/auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c index cb43d74ef9d..07d04417816 100644 --- a/usr.sbin/pppd/auth.c +++ b/usr.sbin/pppd/auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.c,v 1.7 1997/01/02 10:50:18 mickey Exp $ */ +/* $OpenBSD: auth.c,v 1.8 1997/04/06 19:17:06 millert Exp $ */ /* * auth.c - PPP authentication and phase control. @@ -35,7 +35,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: auth.c,v 1.7 1997/01/02 10:50:18 mickey Exp $"; +static char rcsid[] = "$OpenBSD: auth.c,v 1.8 1997/04/06 19:17:06 millert Exp $"; #endif #include <stdio.h> @@ -1131,7 +1131,7 @@ ip_addr_check(addr, addrs) } else { np = getnetbyname (ptr_word); if (np != NULL && np->n_addrtype == AF_INET) - ina.s_addr = htonl (*(u_int32_t *)np->n_net); + ina.s_addr = htonl (np->n_net); else r = inet_aton (ptr_word, &ina); if (ptr_mask == NULL) { |