mirror of
https://github.com/curl/curl.git
synced 2026-08-01 07:18:04 +03:00
rustls: fixed minor logic bug in default cipher selection
Follow-up to 1e03d4b
Closes #14840
This commit is contained in:
parent
6a9f3764f1
commit
0ca15307a3
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ add_ciphers:
|
|||
struct rustls_str s;
|
||||
entry = rustls_default_ciphersuites_get_entry(j);
|
||||
s = rustls_supported_ciphersuite_get_name(entry);
|
||||
if(s.len < 5 || strncmp(s.data, "TLS13", 5) == 0)
|
||||
if(s.len >= 5 && strncmp(s.data, "TLS13", 5) == 0)
|
||||
continue;
|
||||
|
||||
/* No duplicates allowed (so selected cannot overflow) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue