2004-07-26 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
new buffer at the right time.
Reported by Jakub Bogusz <qboosh@pld-linux.org>.
+2004-07-26 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
+ new buffer at the right time.
+ Reported by Jakub Bogusz <qboosh@pld-linux.org>.
+
2004-07-25 Ulrich Drepper <drepper@redhat.com>
* inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
{
ifc.ifc_len = rq_len;
void *newp = realloc (ifc.ifc_buf, ifc.ifc_len);
- if (newp == NULL || __ioctl (fd, SIOCGIFCONF, &ifc) < 0)
+ if (newp == NULL
+ || (ifc.ifc_buf = newp, __ioctl (fd, SIOCGIFCONF, &ifc)) < 0)
{
free (ifc.ifc_buf);
*ifreqs = NULL;
return;
}
- ifc.ifc_buf = newp;
if (!old_siocgifconf || ifc.ifc_len < rq_len)
break;