]> git.pld-linux.org Git - packages/glibc.git/blame - glibc-ifreq.patch
- added ppc-getcontext patch (fixes caller's frame corruption on getcontext())
[packages/glibc.git] / glibc-ifreq.patch
CommitLineData
60ed1e2a
JB
1--- libc/sysdeps/unix/sysv/linux/ifreq.c.orig Fri May 7 05:57:37 2004
2+++ libc/sysdeps/unix/sysv/linux/ifreq.c Mon Jul 26 13:58:08 2004
3@@ -71,6 +71,8 @@
4 {
5 ifc.ifc_len = rq_len;
6 void *newp = realloc (ifc.ifc_buf, ifc.ifc_len);
7+ if (newp != NULL)
8+ ifc.ifc_buf = newp;
9 if (newp == NULL || __ioctl (fd, SIOCGIFCONF, &ifc) < 0)
10 {
11 free (ifc.ifc_buf);
12@@ -82,7 +84,6 @@
13 *ifreqs = NULL;
14 return;
15 }
16- ifc.ifc_buf = newp;
17
18 if (!old_siocgifconf || ifc.ifc_len < rq_len)
19 break;
This page took 0.095227 seconds and 4 git commands to generate.