2007-05-09 Ralf Corsépius <ralf.corsepius@rtems.org>

PR 1243
	* pppd/auth.c (set_allowed_addrs): Remove bogus dereference.
This commit is contained in:
Ralf Corsepius
2007-05-09 11:23:14 +00:00
parent 5a2feeada7
commit 890d2c6326
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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);