Lines 1-40
Link Here
|
1 |
From: Jeremy Harris <jgh146exb@wizmail.org> |
|
|
2 |
Date: Mon, 16 Apr 2018 17:45:04 +0000 (+0100) |
3 |
Subject: Fix OpenSSL non-OCSP build |
4 |
X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/37f0ce65959019e417ff79b9d0959e13470c5290 |
5 |
|
6 |
Fix OpenSSL non-OCSP build |
7 |
--- |
8 |
|
9 |
diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c |
10 |
index fb59217..cefa94f 100644 |
11 |
--- src/tls-openssl.c.orig |
12 |
+++ src/tls-openssl.c |
13 |
@@ -2505,10 +2505,12 @@ if (error == SSL_ERROR_ZERO_RETURN) |
14 |
if (SSL_get_shutdown(server_ssl) == SSL_RECEIVED_SHUTDOWN) |
15 |
SSL_shutdown(server_ssl); |
16 |
|
17 |
+#ifndef DISABLE_OCSP |
18 |
sk_X509_pop_free(server_static_cbinfo->verify_stack, X509_free); |
19 |
+ server_static_cbinfo->verify_stack = NULL; |
20 |
+#endif |
21 |
SSL_free(server_ssl); |
22 |
SSL_CTX_free(server_ctx); |
23 |
- server_static_cbinfo->verify_stack = NULL; |
24 |
server_ctx = NULL; |
25 |
server_ssl = NULL; |
26 |
tls_in.active = -1; |
27 |
@@ -2782,11 +2784,13 @@ if (shutdown) |
28 |
} |
29 |
} |
30 |
|
31 |
+#ifndef DISABLE_OCSP |
32 |
if (is_server) |
33 |
{ |
34 |
sk_X509_pop_free(server_static_cbinfo->verify_stack, X509_free); |
35 |
server_static_cbinfo->verify_stack = NULL; |
36 |
} |
37 |
+#endif |
38 |
|
39 |
SSL_CTX_free(*ctxp); |
40 |
SSL_free(*sslp); |