Module Name: src Committed By: christos Date: Wed Mar 10 13:45:39 UTC 2010
Modified Files: src/usr.sbin/pppd/pppd: sys-bsd.c Log Message: PR/42943: Takashi Sogabe: pppd generates invalid netmask To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/usr.sbin/pppd/pppd/sys-bsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/pppd/pppd/sys-bsd.c diff -u src/usr.sbin/pppd/pppd/sys-bsd.c:1.61 src/usr.sbin/pppd/pppd/sys-bsd.c:1.62 --- src/usr.sbin/pppd/pppd/sys-bsd.c:1.61 Fri Nov 13 23:47:03 2009 +++ src/usr.sbin/pppd/pppd/sys-bsd.c Wed Mar 10 08:45:39 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: sys-bsd.c,v 1.61 2009/11/14 04:47:03 christos Exp $ */ +/* $NetBSD: sys-bsd.c,v 1.62 2010/03/10 13:45:39 christos Exp $ */ /* * sys-bsd.c - System-dependent procedures for setting up @@ -79,7 +79,7 @@ #if 0 #define RCSID "Id: sys-bsd.c,v 1.47 2000/04/13 12:04:23 paulus Exp " #else -__RCSID("$NetBSD: sys-bsd.c,v 1.61 2009/11/14 04:47:03 christos Exp $"); +__RCSID("$NetBSD: sys-bsd.c,v 1.62 2010/03/10 13:45:39 christos Exp $"); #endif #endif @@ -1932,7 +1932,7 @@ /* * Get its netmask and OR it into our mask. */ - mask |= ((struct sockaddr_in *)&ifa->ifa_netmask)->sin_addr.s_addr; + mask |= ((struct sockaddr_in *)ifa->ifa_netmask)->sin_addr.s_addr; } freeifaddrs(ifap);