Fix leakage that may cause the process to run out of FDs when more than a certain number of sessions was opened.
Signed-off-by: Klaus Heinrich Kiwi <[email protected]> --- usr/lib/pkcs11/soft_stdll/soft_specific.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usr/lib/pkcs11/soft_stdll/soft_specific.c b/usr/lib/pkcs11/soft_stdll/soft_specific.c index 2e8ee5b..7dfb077 100644 --- a/usr/lib/pkcs11/soft_stdll/soft_specific.c +++ b/usr/lib/pkcs11/soft_stdll/soft_specific.c @@ -371,6 +371,7 @@ token_rng(CK_BYTE *output, CK_ULONG bytes) rlen = read(ranfd,output+totallen,bytes-totallen); totallen += rlen; } while( totallen < bytes); + close(ranfd); return CKR_OK; } else { return CKR_FUNCTION_FAILED; -- 1.7.2.3 ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Opencryptoki-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech
