On Fri, Feb 10, 2012, Erik Tkal wrote:

> 
> I think the following in evp_enc.c at line 123 might work to only clean up 
> the CTX if you were specifying a cipher and one was already present:
> 
>       if (cipher)
>               {
>               /* Ensure a context left lying around from last time is cleared
>                * (the previous check attempted to avoid this if the same
>                * ENGINE and EVP_CIPHER could be used). */
> +++>          if (ctx->cipher)
>                   EVP_CIPHER_CTX_cleanup(ctx);
> 

Should be fixed now, thanks for the report.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to