From b3d13de34b0406948716f684e936f973f6a12dc3 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 9 May 2007 11:24:44 +0000 Subject: =?UTF-8?q?2007-05-09=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR 1243 * pppd/auth.c (set_allowed_addrs): Remove bogus dereference. --- cpukit/ChangeLog | 5 +++++ cpukit/pppd/auth.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 539e143152..fc73dfd4d5 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2007-05-09 Ralf Corsépius + + PR 1243 + * pppd/auth.c (set_allowed_addrs): Remove bogus dereference. + 2007-04-16 Joel Sherrill PR 1240/filesystem diff --git a/cpukit/pppd/auth.c b/cpukit/pppd/auth.c index b315a1f723..a79d185621 100644 --- a/cpukit/pppd/auth.c +++ b/cpukit/pppd/auth.c @@ -968,7 +968,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 (np->n_net); if (ptr_mask == NULL) { /* calculate appropriate mask for net */ ah = ntohl(a); -- cgit v1.2.3