Line 0
Link Here
|
|
|
1 |
--- src/tls/tls_misc.c.orig 2020-07-12 20:41:51 UTC |
2 |
+++ src/tls/tls_misc.c |
3 |
@@ -922,8 +922,6 @@ void tls_get_signature_params(TLS_SESS_STATE *TLSco |
4 |
*/ |
5 |
if (SSL_get_signature_nid(ssl, &nid) && nid != NID_undef) |
6 |
locl_sig_dgst = OBJ_nid2sn(nid); |
7 |
- |
8 |
- X509_free(cert); |
9 |
} |
10 |
/* Signature algorithms for the peer end of the connection */ |
11 |
if ((cert = SSL_get_peer_certificate(ssl)) != 0) { |
12 |
@@ -965,6 +963,8 @@ void tls_get_signature_params(TLS_SESS_STATE *TLSco |
13 |
*/ |
14 |
if (SSL_get_peer_signature_nid(ssl, &nid) && nid != NID_undef) |
15 |
peer_sig_dgst = OBJ_nid2sn(nid); |
16 |
+ |
17 |
+ X509_free(cert); |
18 |
} |
19 |
if (kex_name) { |
20 |
TLScontext->kex_name = mystrdup(kex_name); |