]> git.ozlabs.org Git - ppp.git/commitdiff
Merging tiny patch from John R.Daily <jdaily@progeny.com> for bug in processing
authorRussell Coker <russell@coker.com.au>
Sun, 9 Mar 2003 09:52:19 +0000 (09:52 +0000)
committerRussell Coker <russell@coker.com.au>
Sun, 9 Mar 2003 09:52:19 +0000 (09:52 +0000)
results from getnetbyname().

pppd/auth.c

index d554bfd0f7e6aecb5cfa921f903a160fd45cc92f..b0bcdcf4a9d59349dd2872f344a4450c7bb0fdae 100644 (file)
@@ -73,7 +73,7 @@
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#define RCSID  "$Id: auth.c,v 1.93 2003/03/03 05:11:45 paulus Exp $"
+#define RCSID  "$Id: auth.c,v 1.94 2003/03/09 09:52:19 etbe Exp $"
 
 #include <stdio.h>
 #include <stddef.h>
@@ -1986,7 +1986,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 ((u_int32_t)np->n_net);
                if (ptr_mask == NULL) {
                    /* calculate appropriate mask for net */
                    ah = ntohl(a);