]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib: check NULL before freeing passwd data 446/head
authorIker Pedrosa <ipedrosa@redhat.com>
Thu, 18 Nov 2021 15:48:26 +0000 (16:48 +0100)
committerIker Pedrosa <ipedrosa@redhat.com>
Fri, 19 Nov 2021 11:09:59 +0000 (12:09 +0100)
commitd594243fbbdabc73fdee50886f6dd11867b5cfab
tree32dd99156847b57294178945ae4b287e0987464e
parent02916e9cb21a3c8dd3509f43a6eebdebf94fbf3b
lib: check NULL before freeing passwd data

Add an additional NULL check condition in spw_free() and pw_free() to
avoid freeing an already empty pointer.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
lib/pwmem.c
lib/shadowmem.c