kopia lustrzana https://github.com/Hamlib/Hamlib
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
rodzic
c26113c5cc
commit
96bc67d993
|
@ -222,6 +222,7 @@ unsigned long long AESStringCrypt(unsigned char *password,
|
|||
{
|
||||
if (fread(buffer, 1, 32, randfp) != 32)
|
||||
{
|
||||
fclose(randfp);
|
||||
return AESSTRINGCRYPT_ERROR;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue