Return NULL if init_tls_client_context() fails.
Otherwise, we will call SSL_new with a freed SSL context. Bug #970
This commit is contained in:
@@ -1454,6 +1454,7 @@ init_tls_client_context(const char *ca_bundle_file, const char *cert_file, const
|
|||||||
|
|
||||||
bad:
|
bad:
|
||||||
SSL_CTX_free(ctx);
|
SSL_CTX_free(ctx);
|
||||||
|
ctx = NULL;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
debug_return_ptr(ctx);
|
debug_return_ptr(ctx);
|
||||||
|
Reference in New Issue
Block a user