summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-05-09 11:24:44 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-05-09 11:24:44 +0000
commitb3d13de34b0406948716f684e936f973f6a12dc3 (patch)
treeade4205bd90dd3cc203fb8338daeeaa7d18cbb63 /cpukit
parent2007-04-17 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-b3d13de34b0406948716f684e936f973f6a12dc3.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 'cpukit')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/pppd/auth.c2
2 files changed, 6 insertions, 1 deletions
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 <ralf.corsepius@rtems.org>
+
+ PR 1243
+ * pppd/auth.c (set_allowed_addrs): Remove bogus dereference.
+
2007-04-16 Joel Sherrill <joel@OARcorp.com>
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);