]> git.ipfire.org Git - thirdparty/glibc.git/commit
nscd: Fix double free in netgroupcache [BZ #27462]
authorDJ Delorie <dj@redhat.com>
Thu, 25 Feb 2021 21:08:21 +0000 (16:08 -0500)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 8 Mar 2021 10:12:15 +0000 (15:42 +0530)
commite9c0d7d7ff4417b9d0bb6b4ac62721de3d6ae683
treeb51c13ef185b9b1787227b42ae6202366507699c
parenta9acd88a5d2ed44c1f67f26ae7ed1193225224f9
nscd: Fix double free in netgroupcache [BZ #27462]

In commit 745664bd798ec8fd50438605948eea594179fba1 a use-after-free
was fixed, but this led to an occasional double-free.  This patch
tracks the "live" allocation better.

Tested manually by a third party.

Related: RHBZ 1927877

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit dca565886b5e8bd7966e15f0ca42ee5cff686673)
nscd/netgroupcache.c