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:24:44 +00:00
parent 07c92a7de3
commit b3d13de34b
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-04-16 Joel Sherrill <joel@OARcorp.com> 2007-04-16 Joel Sherrill <joel@OARcorp.com>
PR 1240/filesystem PR 1240/filesystem

View File

@@ -968,7 +968,7 @@ set_allowed_addrs(unit, addrs, opts)
} else { } else {
np = getnetbyname (ptr_word); np = getnetbyname (ptr_word);
if (np != NULL && np->n_addrtype == AF_INET) { 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) { if (ptr_mask == NULL) {
/* calculate appropriate mask for net */ /* calculate appropriate mask for net */
ah = ntohl(a); ah = ntohl(a);