diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-05-09 11:23:14 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-05-09 11:23:14 +0000 |
commit | 890d2c6326dbccadc04955b764256116f7b9826b (patch) | |
tree | 40d755c8678f747319f470b40a3e127c89fc4425 | |
parent | 2007-05-08 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-890d2c6326dbccadc04955b764256116f7b9826b.tar.bz2 |
2007-05-09 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1243
* pppd/auth.c (set_allowed_addrs): Remove bogus dereference.
Diffstat (limited to '')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/pppd/auth.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index e56765308d..e798582f8c 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2007-05-09 Ralf Corsépius <ralf.corsepius@rtems.org> + + PR 1243 + * pppd/auth.c (set_allowed_addrs): Remove bogus dereference. + 2007-05-08 Ralf Corsépius <ralf.corsepius@rtems.org> * libnetworking/machine/endian.h: Convert htons, htonl, ntohs, ntohl diff --git a/cpukit/pppd/auth.c b/cpukit/pppd/auth.c index cb708632cf..b92d692f16 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); |