-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackport-free-dh-ec-params-2.2.x.patch
43 lines (40 loc) · 1.31 KB
/
backport-free-dh-ec-params-2.2.x.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Index: CHANGES
===================================================================
--- CHANGES (revision 1747399)
+++ CHANGES (working copy)
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache 2.2.32
+ *) mod_ssl: Fix a possible memory leak on restart for custom [EC]DH params.
+ [Jan Kaluza, Yann Ylavic]
+
*) mod_proxy: Fix a regression with 2.2.31 that caused inherited workers to
use a different scoreboard slot then the original one. PR 58267.
[Ruediger Pluem]
Index: modules/ssl/ssl_engine_init.c
===================================================================
--- modules/ssl/ssl_engine_init.c (revision 1747399)
+++ modules/ssl/ssl_engine_init.c (working copy)
@@ -900,7 +900,7 @@
const char *rsa_id, *dsa_id;
#ifndef OPENSSL_NO_EC
const char *ecc_id;
- EC_GROUP *ecparams;
+ EC_GROUP *ecparams = NULL;
int nid;
EC_KEY *eckey = NULL;
#endif
@@ -973,6 +973,7 @@
"Custom DH parameters (%d bits) for %s loaded from %s",
BN_num_bits(dhparams->p), vhost_id,
mctx->pks->cert_files[0]);
+ DH_free(dhparams);
}
#ifndef OPENSSL_NO_EC
@@ -1001,6 +1002,7 @@
#endif
}
EC_KEY_free(eckey);
+ EC_GROUP_free(ecparams);
#endif
}