]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Revert "debuginfod-client: correct invalid free() in failed ima path"
authorFrank Ch. Eigler <fche@redhat.com>
Thu, 20 Feb 2025 19:18:24 +0000 (14:18 -0500)
committerFrank Ch. Eigler <fche@elastic.org>
Thu, 20 Feb 2025 19:19:07 +0000 (14:19 -0500)
This reverts commit a71bac67f4705b84368b71f5ece54deedaa1abf1.
Commit 1be0787d6654ed71bf659e8bfd already fixes this problem.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
debuginfod/debuginfod-client.c

index 4152b06a135fdf8a45be5dcf97df3dd5d488fb43..d89beae93ea1d8f6b3aa62017c1b404919d6d79d 100644 (file)
@@ -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