From 83468afb1f19ac0171f2df2a35abcb2a62f1aa79 Mon Sep 17 00:00:00 2001 From: Soner Tari Date: Sat, 10 Nov 2018 19:22:16 +0300 Subject: [PATCH] Fix ssl setup error handling, ssl ctx does not have any proto arg, so arg is always null at that point --- protossl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/protossl.c b/protossl.c index 2afe720..3c20fce 100644 --- a/protossl.c +++ b/protossl.c @@ -1426,7 +1426,6 @@ protossl_setup(pxy_conn_ctx_t *ctx) ctx->sslctx = malloc(sizeof(ssl_ctx_t)); if (!ctx->sslctx) { - free(ctx->protoctx->arg); free(ctx->protoctx); return PROTO_ERROR; }