Fix FD leak in AESStringCrypt.c

Found by `gcc -fanalyzer`, which then spent the next 20+ minutes trying to
analyze md5.c, at which point I gave up.
pull/1834/head
George Baltz N3GB 2025-08-05 11:29:01 -04:00
rodzic c26113c5cc
commit 96bc67d993
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -222,6 +222,7 @@ unsigned long long AESStringCrypt(unsigned char *password,
{
if (fread(buffer, 1, 32, randfp) != 32)
{
fclose(randfp);
return AESSTRINGCRYPT_ERROR;
}