From: Daniel Stenberg Date: Sat, 15 Nov 2025 22:56:31 +0000 (+0100) Subject: rustls: minor adjustment of sizeof() X-Git-Tag: rc-8_18_0-1~277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeff93013c1df0b4063df98f64e5e6feddf46c40;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/vtls/rustls.c b/lib/vtls/rustls.c index ab22909278..f5e3288316 100644 --- a/lib/vtls/rustls.c +++ b/lib/vtls/rustls.c @@ -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;