diff options
author | Technion <technion@lolware.net> | 2014-05-05 23:28:09 +0000 |
---|---|---|
committer | Technion <technion@lolware.net> | 2014-05-05 23:28:09 +0000 |
commit | 535d2d6ec6487301fd6e39f6a4070390c08b4c25 (patch) | |
tree | a34a13af696f5a0b334c1db22124caad93367593 | |
parent | 618dc1570bb7f14835a02f1018452ff6083a1f54 (diff) |
Filehandle leak - uncovered by Coverity
-rw-r--r-- | crypto-scrypt-saltgen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto-scrypt-saltgen.c b/crypto-scrypt-saltgen.c index 5c747c1..2ef1ab2 100644 --- a/crypto-scrypt-saltgen.c +++ b/crypto-scrypt-saltgen.c @@ -31,6 +31,7 @@ int libscrypt_salt_gen(uint8_t *salt, size_t len) } else { + (void)close(urandom); return -1; } } |