From e543c7f5c2b28ac2bce1e9f09fad30caebb579d5 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 20 Feb 2025 14:18:24 -0500 Subject: [PATCH] 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 --- debuginfod/debuginfod-client.c | 1 - 1 file changed, 1 deletion(-) 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 -- 2.47.2