Fix: Signature validation did not close its file. (#12479)

master
Peter Nelson 2 months ago committed by GitHub
parent afd7878de0
commit 3316b27496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -205,6 +205,7 @@ static bool _ValidateSignatureFile(const std::string &filename)
std::string text(filesize, '\0');
size_t len = fread(text.data(), filesize, 1, f);
FioFCloseFile(f);
if (len != 1) {
Debug(misc, 0, "Failed to validate signature: failed to read file: {}", filename);
return false;

Loading…
Cancel
Save