mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:01:41 +03:00
openssl: fix memory leaks in ECH code (OpenSSL 3)
Also drop an unnecessary cast.
Found by Codex Security
Follow-up to a362962b72 #11922
Closes #20993
This commit is contained in:
parent
fc222ec11f
commit
6c0772fd7f
1 changed files with 3 additions and 1 deletions
|
|
@ -4136,7 +4136,9 @@ static void ossl_trace_ech_retry_configs(struct Curl_easy *data, SSL *ssl,
|
|||
else
|
||||
infof(data, "ECH: no retry_configs (rv = %d)", rv);
|
||||
#ifndef HAVE_BORINGSSL_LIKE
|
||||
OPENSSL_free((void *)rcs);
|
||||
OPENSSL_free(inner);
|
||||
OPENSSL_free(rcs);
|
||||
OPENSSL_free(outer);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue