Add missing call to SSL_CTX_free
This commit is contained in:
parent
406ebacfe5
commit
e8b5d02f13
@ -1264,6 +1264,7 @@ connection_t *accept_new(connection_t *cn)
|
|||||||
conn->ssl_h = SSL_new(sslctx);
|
conn->ssl_h = SSL_new(sslctx);
|
||||||
if (!conn->ssl_h) {
|
if (!conn->ssl_h) {
|
||||||
connection_free(conn);
|
connection_free(conn);
|
||||||
|
SSL_CTX_free(sslctx);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
SSL_set_accept_state(conn->ssl_h);
|
SSL_set_accept_state(conn->ssl_h);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user