From: Russell Coker Date: Sun, 9 Mar 2003 09:52:19 +0000 (+0000) Subject: Merging tiny patch from John R.Daily for bug in processing X-Git-Tag: ppp-2.4.7~315 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=9f84661804e443a923cbc9b08db611ba15ea4f95;ds=sidebyside Merging tiny patch from John R.Daily for bug in processing results from getnetbyname(). --- diff --git a/pppd/auth.c b/pppd/auth.c index d554bfd..b0bcdcf 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -73,7 +73,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: auth.c,v 1.93 2003/03/03 05:11:45 paulus Exp $" +#define RCSID "$Id: auth.c,v 1.94 2003/03/09 09:52:19 etbe Exp $" #include #include @@ -1986,7 +1986,7 @@ set_allowed_addrs(unit, addrs, opts) } else { np = getnetbyname (ptr_word); if (np != NULL && np->n_addrtype == AF_INET) { - a = htonl (*(u_int32_t *)np->n_net); + a = htonl ((u_int32_t)np->n_net); if (ptr_mask == NULL) { /* calculate appropriate mask for net */ ah = ntohl(a);