1
0
Fork 0

Fix: Signature validation did not close its file.

pull/12479/head
Peter Nelson 2024-04-11 13:41:29 +01:00
parent afd7878de0
commit e6fbd0b0d8
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 0 deletions

View File

@ -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;