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:
parent
e80d852a1b
commit
d6777ec278
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue