cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit d6777ec2788f9ece56a6201fb091dba4a15f739a
parent e80d852a1ba62c8877dab40324ac90a14a0b7eea
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Mon, 21 Sep 2020 22:21:45 -0400

gemini_response_finish: handle null ssl connection

Diffstat:
Msrc/client.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/client.c b/src/client.c @@ -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);