diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-02-27 11:20:39 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-02-27 11:20:39 +0000 |
commit | fe64626c136b3e1be9bd51acb6e4c0714f5815d0 (patch) | |
tree | 577083a622c5c5344e9b2a3d2a7df337246689af /sysdeps | |
parent | 00a1430e3f97ae7700d53da8ef6a6eaa100ca78d (diff) | |
download | glibc-fe64626c136b3e1be9bd51acb6e4c0714f5815d0.tar.gz glibc-fe64626c136b3e1be9bd51acb6e4c0714f5815d0.tar.xz glibc-fe64626c136b3e1be9bd51acb6e4c0714f5815d0.zip |
* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
memory reallocation. 2007-02-27 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix memory reallocation.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/ifaddrs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/ifaddrs.c b/sysdeps/unix/sysv/linux/ifaddrs.c index 82495de03e..e43f39f9e3 100644 --- a/sysdeps/unix/sysv/linux/ifaddrs.c +++ b/sysdeps/unix/sysv/linux/ifaddrs.c @@ -1,5 +1,5 @@ /* getifaddrs -- get names and addresses of all network interfaces - Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -195,7 +195,7 @@ __netlink_request (struct netlink_handle *h, int type) char *new_buf = realloc (use_malloc ? buf : NULL, this_buf_size); if (new_buf == NULL) goto out_fail; - new_buf = buf; + buf = new_buf; use_malloc = true; } |