[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r1587 - in /fsf/trunk/libc: ChangeLog sysdeps/unix/sysv/linux/ifaddrs.c



Author: eglibc
Date: Wed Feb 28 00:01:32 2007
New Revision: 1587

Log:
Import glibc-mainline for 2007-02-28

Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/sysdeps/unix/sysv/linux/ifaddrs.c

Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Wed Feb 28 00:01:32 2007
@@ -1,3 +1,8 @@
+2007-02-27  Jakub Jelinek  <jakub@xxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
+	memory reallocation.
+
 2007-02-21  Ulrich Drepper  <drepper@xxxxxxxxxx>
 
 	* stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/ifaddrs.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/ifaddrs.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/ifaddrs.c Wed Feb 28 00:01:32 2007
@@ -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 @@
 	      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;
 	    }