1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-06-11 02:06:03 +02:00

gemini_response_finish: handle null ssl connection

This commit is contained in:
Eyal Sawady 2020-09-21 22:21:45 -04:00 committed by Drew DeVault
parent e80d852a1b
commit d6777ec278

View File

@ -240,7 +240,9 @@ gemini_response_finish(struct gemini_response *resp)
resp->bio = NULL;
}
SSL_free(resp->ssl);
if (resp->ssl) {
SSL_free(resp->ssl);
}
SSL_CTX_free(resp->ssl_ctx);
free(resp->meta);