2003-12-20 Roland McGrath <roland@frob.com>

* sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
	add missing dereference of IFREQS before counting loop.
This commit is contained in:
Roland McGrath 2003-12-22 06:19:22 +00:00
parent 33ebea1784
commit 83a93ac66e

View File

@ -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)
{