From: Roland McGrath Date: Mon, 22 Dec 2003 06:19:22 +0000 (+0000) Subject: 2003-12-20 Roland McGrath X-Git-Tag: cvs/ChangeLog~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83a93ac66e30eb5e34a4ad0ea84ddcc87d1b9253;p=thirdparty%2Fglibc.git 2003-12-20 Roland McGrath * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo: add missing dereference of IFREQS before counting loop. --- diff --git a/sysdeps/generic/ifreq.c b/sysdeps/generic/ifreq.c index be7c03cf08e..da4db19e6fe 100644 --- a/sysdeps/generic/ifreq.c +++ b/sysdeps/generic/ifreq.c @@ -62,7 +62,7 @@ __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd) __close (fd); #ifdef _HAVE_SA_LEN - struct ifreq *ifr = ifreqs; + struct ifreq *ifr = *ifreqs; nifs = 0; while ((char *) ifr < ifc.ifc_buf + ifc.ifc_len) {