mirror of
https://github.com/curl/curl.git
synced 2026-04-14 23:01:41 +03:00
doh: remove superfluous doh_req check
It has already been checked previously in the function. Spotted by CodeSonar Closes #21216
This commit is contained in:
parent
b669a58f2e
commit
741ee57375
1 changed files with 7 additions and 10 deletions
|
|
@ -254,8 +254,6 @@ static void doh_probe_done(struct Curl_easy *data,
|
|||
dohp->probe_resp[i].result = result;
|
||||
/* We expect either the meta data still to exist or the sub request
|
||||
* to have already failed. */
|
||||
DEBUGASSERT(doh_req || result);
|
||||
if(doh_req) {
|
||||
if(!result) {
|
||||
dohp->probe_resp[i].dnstype = doh_req->dnstype;
|
||||
result = curlx_dyn_addn(&dohp->probe_resp[i].body,
|
||||
|
|
@ -264,7 +262,6 @@ static void doh_probe_done(struct Curl_easy *data,
|
|||
curlx_dyn_free(&doh_req->resp_body);
|
||||
}
|
||||
Curl_meta_remove(doh, CURL_EZM_DOH_PROBE);
|
||||
}
|
||||
|
||||
if(result)
|
||||
infof(doh, "DoH request %s", curl_easy_strerror(result));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue