mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
* nis/nss_nis/nis-pwd.c (internal_nis_getpwent_r): Don't try to
free outkey in error case when batch_read is set.
This commit is contained in:
parent
d4b661e575
commit
1e528c6e1b
@ -1,5 +1,8 @@
|
|||||||
2006-05-01 Ulrich Drepper <drepper@redhat.com>
|
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
|
* 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].
|
free outkey in error case when batch_read is set [Coverity CID 196].
|
||||||
|
|
||||||
|
6
NEWS
6
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.
|
Copyright (C) 1992-2002,2003,2004,2005,2006 Free Software Foundation, Inc.
|
||||||
See the end for copying conditions.
|
See the end for copying conditions.
|
||||||
|
|
||||||
@ -10,7 +10,9 @@ Version 2.5
|
|||||||
* For Linux, the sorting of addresses returned by getaddrinfo now also
|
* For Linux, the sorting of addresses returned by getaddrinfo now also
|
||||||
handles rules 3 and 7 from RFC 3484. Implemented by Ulrich Drepper.
|
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.
|
||||||
|
|
||||||
|
|
||||||
Version 2.4
|
Version 2.4
|
||||||
|
@ -333,6 +333,7 @@ internal_nis_getpwent_r (struct passwd *pwd, char *buffer, size_t buflen,
|
|||||||
errnop);
|
errnop);
|
||||||
if (__builtin_expect (parse_res == -1, 0))
|
if (__builtin_expect (parse_res == -1, 0))
|
||||||
{
|
{
|
||||||
|
if (!batch_read)
|
||||||
free (outkey);
|
free (outkey);
|
||||||
*errnop = ERANGE;
|
*errnop = ERANGE;
|
||||||
return NSS_STATUS_TRYAGAIN;
|
return NSS_STATUS_TRYAGAIN;
|
||||||
|
Loading…
Reference in New Issue
Block a user