mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
* 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].
This commit is contained in:
parent
96c169f22e
commit
d4b661e575
@ -1,5 +1,8 @@
|
|||||||
2006-05-01 Ulrich Drepper <drepper@redhat.com>
|
2006-05-01 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* 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].
|
||||||
|
|
||||||
[BZ #2517]
|
[BZ #2517]
|
||||||
* misc/sys/queue.h: Update to more recent version.
|
* misc/sys/queue.h: Update to more recent version.
|
||||||
|
|
||||||
|
@ -220,7 +220,8 @@ internal_nis_getgrent_r (struct group *grp, char *buffer, size_t buflen,
|
|||||||
errnop);
|
errnop);
|
||||||
if (__builtin_expect (parse_res == -1, 0))
|
if (__builtin_expect (parse_res == -1, 0))
|
||||||
{
|
{
|
||||||
free (outkey);
|
if (!batch_read)
|
||||||
|
free (outkey);
|
||||||
*errnop = ERANGE;
|
*errnop = ERANGE;
|
||||||
return NSS_STATUS_TRYAGAIN;
|
return NSS_STATUS_TRYAGAIN;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user