]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod-client.c: Avoid freeing uninitialized value
authorAaron Merey <amerey@redhat.com>
Sat, 25 Jan 2025 00:43:19 +0000 (19:43 -0500)
committerAaron Merey <amerey@redhat.com>
Sat, 25 Jan 2025 00:43:19 +0000 (19:43 -0500)
commit1be0787d6654ed71bf659e8bfd34895fea7589eb
tree13a5635af2ddacfa96babce2e8935fdfafa77f5c
parent4eff110a60cb9c7b77884c61f5925fe844c52acb
debuginfod-client.c: Avoid freeing uninitialized value

debuginfod_validate_imasig might call free on an uninitialized sig_buf
due to a goto that can occur before sig_buf is set to NULL.

Fix this by setting sig_buf to NULL before the goto.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/debuginfod-client.c