Fix ssl setup error handling, ssl ctx does not have any proto arg, so arg is always null at that point

pull/13/head
Soner Tari 6 years ago
parent 3f148cf3b9
commit 83468afb1f

@ -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;
}

Loading…
Cancel
Save