mirror of git://sourceware.org/git/glibc.git
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:
parent
33ebea1784
commit
83a93ac66e
|
|
@ -62,7 +62,7 @@ __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd)
|
||||||
__close (fd);
|
__close (fd);
|
||||||
|
|
||||||
#ifdef _HAVE_SA_LEN
|
#ifdef _HAVE_SA_LEN
|
||||||
struct ifreq *ifr = ifreqs;
|
struct ifreq *ifr = *ifreqs;
|
||||||
nifs = 0;
|
nifs = 0;
|
||||||
while ((char *) ifr < ifc.ifc_buf + ifc.ifc_len)
|
while ((char *) ifr < ifc.ifc_buf + ifc.ifc_len)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue