diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-04 14:37:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-04 14:52:35 -0400 |
commit | 274efb126324f3f8a7e98b15a697c0038a9803d0 (patch) | |
tree | 06b7ab7f8442c1885b39bbb571d0d59b99a00b61 /src/lib/tls/tortls_openssl.c | |
parent | ad94d43fc50525e8814b6e99f78d4b9635fa80ca (diff) | |
download | tor-274efb126324f3f8a7e98b15a697c0038a9803d0.tar.gz tor-274efb126324f3f8a7e98b15a697c0038a9803d0.zip |
Use FREE_AND_NULL for impl types
Diffstat (limited to 'src/lib/tls/tortls_openssl.c')
-rw-r--r-- | src/lib/tls/tortls_openssl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/tls/tortls_openssl.c b/src/lib/tls/tortls_openssl.c index 6ff03ee818..370e7e4367 100644 --- a/src/lib/tls/tortls_openssl.c +++ b/src/lib/tls/tortls_openssl.c @@ -496,7 +496,7 @@ tor_tls_cert_matches_key,(const tor_tls_t *tls, const tor_x509_cert_t *cert)) } void -tor_tls_context_impl_free(struct ssl_ctx_st *ctx) +tor_tls_context_impl_free_(struct ssl_ctx_st *ctx) { if (!ctx) return; @@ -1150,6 +1150,9 @@ tor_tls_assert_renegotiation_unblocked(tor_tls_t *tls) void tor_tls_impl_free_(tor_tls_impl_t *ssl) { + if (!ssl) + return; + #ifdef SSL_set_tlsext_host_name SSL_set_tlsext_host_name(ssl, NULL); #endif |