Patch dsa-dh-keygen-segfault-fix for OpenSSL related Bug #73711
Patch version 2016-12-10 17:06 UTC
Return to Bug #73711 |
Download this patch
Patch Revisions:
Developer: margusk@gmail.com
--- ext/openssl/openssl.c 2016-12-10 18:54:00.920233712 +0200
+++ ext/openssl/openssl.c 2016-12-10 18:55:30.377702287 +0200
@@ -3830,6 +3830,7 @@
#if OPENSSL_VERSION_NUMBER < 0x10002000L
dsaparam = DSA_generate_parameters(req->priv_key_bits, NULL, 0, NULL, NULL, NULL, NULL);
#else
+ dsaparam = DSA_new();
DSA_generate_parameters_ex(dsaparam, req->priv_key_bits, NULL, 0, NULL, NULL, NULL);
#endif
if (dsaparam) {
@@ -3859,6 +3860,7 @@
#if OPENSSL_VERSION_NUMBER < 0x10002000L
dhparam = DH_generate_parameters(req->priv_key_bits, 2, NULL, NULL);
#else
+ dhparam = DH_new();
DH_generate_parameters_ex(dhparam, req->priv_key_bits, 2, NULL);
#endif
if (dhparam) {
|