summaryrefslogtreecommitdiffstats
path: root/debuginfod
diff options
context:
space:
mode:
authorFrank Ch. Eigler <[email protected]>2025-02-20 14:18:24 -0500
committerFrank Ch. Eigler <[email protected]>2025-02-20 14:19:07 -0500
commite543c7f5c2b28ac2bce1e9f09fad30caebb579d5 (patch)
treea3986cd5d1d27a8ac3242843fb09d518fb01cdde /debuginfod
parenta71bac67f4705b84368b71f5ece54deedaa1abf1 (diff)
Revert "debuginfod-client: correct invalid free() in failed ima path"
This reverts commit a71bac67f4705b84368b71f5ece54deedaa1abf1. Commit 1be0787d6654ed71bf659e8bfd already fixes this problem. Signed-off-by: Frank Ch. Eigler <[email protected]>
Diffstat (limited to 'debuginfod')
-rw-r--r--debuginfod/debuginfod-client.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
index 4152b06a..d89beae9 100644
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -1599,7 +1599,6 @@ debuginfod_validate_imasig (debuginfod_client *c, int fd)
if (!hdr_ima_sig || 1 != sscanf(hdr_ima_sig + strlen("x-debuginfod-imasignature:"), "%ms", &sig_buf))
{
rc = -ENODATA;
- sig_buf = NULL; // f41 glibc may litter here in case of sscanf error
goto exit_validate;
}
if (strlen(sig_buf) > MAX_SIGNATURE_SIZE) // reject if too long