From: millert Date: Sun, 6 Apr 1997 19:17:06 +0000 (+0000) Subject: Fix mangling in assignment of np->n_net to ina.s_addr. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ccc131c1f5d2e51a8ae2f5418bdf921e88366eab;p=openbsd 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. --- 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 @@ -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) {