]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* nis/nss_nis/nis-pwd.c (internal_nis_getpwent_r): Don't try to
authorUlrich Drepper <drepper@redhat.com>
Mon, 1 May 2006 22:33:24 +0000 (22:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 1 May 2006 22:33:24 +0000 (22:33 +0000)
free outkey in error case when batch_read is set.

ChangeLog
NEWS
nis/nss_nis/nis-pwd.c

index b5efea9dad3942881a21eae68eefcb5366bff5ba..5902e542883d6cd77594500fadc40b0423c944bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-05-01  Ulrich Drepper  <drepper@redhat.com>
 
+       * nis/nss_nis/nis-pwd.c (internal_nis_getpwent_r): Don't try to
+       free outkey in error case when batch_read is set.
+
        * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't try to
        free outkey in error case when batch_read is set [Coverity CID 196].
 
diff --git a/NEWS b/NEWS
index eff3b48a3137159d7108eee7b1c8c84152a524d2..2a9ac22b657e50c197d101cc43cf168b06c3e543 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes.  2006-04-16
+GNU C Library NEWS -- history of user-visible changes.  2006-05-01
 Copyright (C) 1992-2002,2003,2004,2005,2006 Free Software Foundation, Inc.
 See the end for copying conditions.
 
@@ -10,7 +10,9 @@ Version 2.5
 * For Linux, the sorting of addresses returned by getaddrinfo now also
   handles rules 3 and 7 from RFC 3484.  Implemented by Ulrich Drepper.
 
-* New Linux interfaces: splice, tee, sync_file_range.
+* New Linux interfaces: splice, tee, sync_file_range, vmsplace.
+
+* New iconv module for MIK.  Contributed by Alexander Shopov.
 
 \f
 Version 2.4
index 7972118c84c042b49e6b487e852876d0b9f98514..1b5206ad6d682ef833fae3eb54340be78a791bf7 100644 (file)
@@ -333,7 +333,8 @@ internal_nis_getpwent_r (struct passwd *pwd, char *buffer, size_t buflen,
                                          errnop);
       if (__builtin_expect (parse_res == -1, 0))
        {
-         free (outkey);
+         if (!batch_read)
+           free (outkey);
          *errnop = ERANGE;
          return NSS_STATUS_TRYAGAIN;
        }