On Fri, 26 Nov 2010 18:05:17 -0200
Klaus Heinrich Kiwi <[email protected]> wrote:

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

Applied to master branch

-- 
Klaus Heinrich Kiwi | [email protected] | http://blog.klauskiwi.com
Open Source Security blog :     http://www.ratliff.net/blog
IBM Linux Technology Center :   http://www.ibm.com/linux/ltc

------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to