mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:51:41 +03:00
rustls: minor adjustment of sizeof()
The mistake is harmless because it is still a size of a pointer, but this is the correct pointer. Acked-by: Daniel McCarney Reported-by: pelioro on hackerone Bug: https://hackerone.com/reports/3427460 Closes #19545
This commit is contained in:
parent
517a12922e
commit
eeff93013c
1 changed files with 1 additions and 1 deletions
|
|
@ -586,7 +586,7 @@ init_config_builder(struct Curl_easy *data,
|
|||
}
|
||||
#endif /* USE_ECH */
|
||||
|
||||
cipher_suites = malloc(sizeof(cipher_suites) * (cipher_suites_len));
|
||||
cipher_suites = malloc(sizeof(*cipher_suites) * (cipher_suites_len));
|
||||
if(!cipher_suites) {
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
goto cleanup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue