Add missing call to SSL_CTX_free

This commit is contained in:
Pierre-Louis Bonicoli 2016-04-13 01:15:43 +02:00
parent 406ebacfe5
commit e8b5d02f13
1 changed files with 1 additions and 0 deletions

View File

@ -1264,6 +1264,7 @@ connection_t *accept_new(connection_t *cn)
conn->ssl_h = SSL_new(sslctx);
if (!conn->ssl_h) {
connection_free(conn);
SSL_CTX_free(sslctx);
return NULL;
}
SSL_set_accept_state(conn->ssl_h);