mirror of
https://github.com/curl/curl.git
synced 2026-04-18 08:41:40 +03:00
https-connect, fix httpsrr target check
The HTTPSRR check on the record's target was not working as it used the wrong index on the NUL byte if the target was not NULL. Fixes #16966 Reported-by: Pavel Kropachev Closes #16968
This commit is contained in:
parent
0e9f2c41b6
commit
4f3c22d77d
1 changed files with 1 additions and 1 deletions
|
|
@ -673,7 +673,7 @@ CURLcode Curl_cf_https_setup(struct Curl_easy *data,
|
|||
(!conn->dns_entry->hinfo->target || /* for same host */
|
||||
!conn->dns_entry->hinfo->target[0] ||
|
||||
(conn->dns_entry->hinfo->target[0] == '.' &&
|
||||
!conn->dns_entry->hinfo->target[0])) &&
|
||||
!conn->dns_entry->hinfo->target[1])) &&
|
||||
(conn->dns_entry->hinfo->port < 0 || /* for same port */
|
||||
conn->dns_entry->hinfo->port == conn->remote_port)) {
|
||||
size_t i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue