mirror of
https://github.com/curl/curl.git
synced 2026-04-15 03:41:41 +03:00
rustls: verify that verifier_builder is not NULL
Since this function returns allocated resources there is probably at least a theoretical risk this can return NULL. Pointed out by ZeroPath Closes #19756
This commit is contained in:
parent
545f2f387d
commit
db32c0721f
1 changed files with 4 additions and 0 deletions
|
|
@ -750,6 +750,10 @@ init_config_builder_verifier(struct Curl_easy *data,
|
|||
}
|
||||
|
||||
verifier_builder = rustls_web_pki_server_cert_verifier_builder_new(roots);
|
||||
if(!verifier_builder) {
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if(conn_config->CRLfile) {
|
||||
result = init_config_builder_verifier_crl(data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue