commit | 06e2243fd7564f7c822aacb5e9318874753b5f21 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Jan 15 10:30:06 2016 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Jan 15 10:30:06 2016 +0100 |
tree | 37e554e2325e23ae3a6f53c5517e5d1c607f6129 | |
parent | 8dadf7800b2c1fea93845f98d37696b7c148f18f [diff] [blame] |
session CHANGE tls/ssh-specific session field reorganized
diff --git a/src/session.c b/src/session.c index bef3cd2..3306c07 100644 --- a/src/session.c +++ b/src/session.c
@@ -308,12 +308,12 @@ #ifdef ENABLE_TLS case NC_TI_OPENSSL: - X509_free(session->cert); - if (connected) { SSL_shutdown(session->ti.tls); } SSL_free(session->ti.tls); + + X509_free(session->tls_cert); break; #endif case NC_TI_NONE: