Skip to content

Commit

Permalink
fix ctx uninitialized goto
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jun 3, 2024
1 parent 01576d9 commit acaa2f3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/tls/openssl/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,12 @@ static int tls_ctx_alloc(SSL_CTX **ctxp, enum tls_method method,

default:
DEBUG_WARNING("tls method %d not supported\n", method);
err = ENOSYS;
goto out;
return ENOSYS;
}

if (!ctx) {
ERR_clear_error();
err = ENOMEM;
goto out;
return ENOMEM;
}

SSL_CTX_set_min_proto_version(ctx, min_proto);
Expand Down

0 comments on commit acaa2f3

Please sign in to comment.