doh: remove unused local variable
The nurl variable is no longer used during probing following a refactoring, so remove. Closes #12491
This commit is contained in:
parent
0f3f384343
commit
d65b8868c6
@ -218,7 +218,6 @@ static CURLcode dohprobe(struct Curl_easy *data,
|
|||||||
struct curl_slist *headers)
|
struct curl_slist *headers)
|
||||||
{
|
{
|
||||||
struct Curl_easy *doh = NULL;
|
struct Curl_easy *doh = NULL;
|
||||||
char *nurl = NULL;
|
|
||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
timediff_t timeout_ms;
|
timediff_t timeout_ms;
|
||||||
DOHcode d = doh_encode(host, dnstype, p->dohbuffer, sizeof(p->dohbuffer),
|
DOHcode d = doh_encode(host, dnstype, p->dohbuffer, sizeof(p->dohbuffer),
|
||||||
@ -351,11 +350,9 @@ static CURLcode dohprobe(struct Curl_easy *data,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
goto error;
|
goto error;
|
||||||
free(nurl);
|
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
free(nurl);
|
|
||||||
Curl_close(&doh);
|
Curl_close(&doh);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user