Skip to content

Commit

Permalink
0 means lowest protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Sep 9, 2023
1 parent 1f5ddcc commit e8ea2a8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/tls/openssl/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,9 @@ int tls_alloc(struct tls **tlsp, enum tls_method method, const char *keyfile,
goto out;
}

if (min_proto) {
err = tls_set_min_proto_version(tls, min_proto);
if (err) {
goto out;
}
err = tls_set_min_proto_version(tls, min_proto);
if (err) {
goto out;
}

#if defined(TRACE_SSL)
Expand Down

0 comments on commit e8ea2a8

Please sign in to comment.