From: Paul Mackerras Date: Fri, 28 Apr 1995 06:26:23 +0000 (+0000) Subject: don't use sa_len from interface conf list X-Git-Tag: RELEASE_2_3_6~740 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=7dabc25770ff656c974723282a19f4bdec8deea4;p=ppp.git don't use sa_len from interface conf list --- diff --git a/pppd/sys-osf.c b/pppd/sys-osf.c index 66fc07d..8cd7710 100644 --- a/pppd/sys-osf.c +++ b/pppd/sys-osf.c @@ -19,7 +19,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-osf.c,v 1.2 1995/04/27 00:44:46 paulus Exp $"; +static char rcsid[] = "$Id: sys-osf.c,v 1.3 1995/04/28 06:26:23 paulus Exp $"; #endif /* @@ -1193,8 +1193,7 @@ GetMask(addr) return mask; } ifend = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len); - for (ifr = ifc.ifc_req; ifr < ifend; ifr = (struct ifreq *) - ((char *)&ifr->ifr_addr + ifr->ifr_addr.sa_len)) { + for (ifr = ifc.ifc_req; ifr < ifend; ++ifr) { /* * Check the interface's internet address. */