[Pkg-openssl-devel] Bug#670581: Bug#670581: openssl: ntpd segfaults with error 4 in libcrypto.so.0.9.8 on Debian squeeze

Kurt Roeckx kurt at roeckx.be
Mon Apr 30 10:07:05 UTC 2012


On Sun, Apr 29, 2012 at 05:13:39PM -0700, Andris Kalnozols wrote:
> 
> I also added the following code:
> 
> --- ntp_crypto.c.orig   2009-12-08 23:36:35.000000000 -0800
> +++ ntp_crypto.c        2012-04-29 15:16:50.181208921 -0700
> @@ -230,6 +230,38 @@
>                 break;
>         }

Can you add this line:
	EVP_MD_CTX_init(&ctx);

Before this line:
	
>         EVP_DigestInit(&ctx, EVP_get_digestbynid(crypto_nid));

The documentation clearly says that ctx must be initialized before
calling EVP_DigestInit{_ex}



Kurt






More information about the Pkg-openssl-devel mailing list