mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
asyn-ares: fix HTTPS-lookup when not on port 443
Follow-up to 8d0bfe74fb
Spotted by Codex Security
Closes #20966
This commit is contained in:
parent
b11f43a4db
commit
02e04eaee7
1 changed files with 1 additions and 1 deletions
|
|
@ -728,7 +728,7 @@ CURLcode Curl_async_getaddrinfo(struct Curl_easy *data, const char *hostname,
|
|||
return CURLE_OUT_OF_MEMORY;
|
||||
#ifdef USE_HTTPSRR
|
||||
if(port != 443) {
|
||||
rrname = curl_maprintf("_%d_.https.%s", port, hostname);
|
||||
rrname = curl_maprintf("_%d._https.%s", port, hostname);
|
||||
if(!rrname)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue