]> 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 09:56:15 +0000 (15:26 +0530)
commit1d4526569162e6c8f0789eb077492730b0756b3b
tree7b101e94df58e7b760c762453bc120c2b3311a04
parent760e1d287825fa91d4d5a0cc921340c740d803e2
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