free SSL context and reset context pointer when setting the cipher list fails; this is a followup of issue #3069 (#3245)

remotes/origin/ip-change-early
Andreas Wehrmann 2 years ago committed by GitHub
parent 6f80f645d9
commit 0fb32cd4c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1221,8 +1221,11 @@ static pj_status_t init_ossl_ctx(pj_ssl_sock_t *ssock)
/* Set cipher list */
status = set_cipher_list(ssock);
if (status != PJ_SUCCESS)
if (status != PJ_SUCCESS) {
SSL_CTX_free(ctx);
ossock->ossl_ctx = NULL;
return status;
}
/* Apply credentials */
if (cert) {

Loading…
Cancel
Save