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:
Daniel Stenberg 2025-11-15 23:56:31 +01:00
parent 517a12922e
commit eeff93013c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

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