From 7dabc25770ff656c974723282a19f4bdec8deea4 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Fri, 28 Apr 1995 06:26:23 +0000 Subject: [PATCH] don't use sa_len from interface conf list --- pppd/sys-osf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. */ -- 2.39.2