mirror of
https://github.com/curl/curl.git
synced 2026-06-18 10:45:36 +03:00
dns-httpsrr-lookup: use origin, not peer
Origin is the correct peer for lookup of HTTPS-RR records. Closes #22059
This commit is contained in:
parent
39caaff7b3
commit
8c3ef95adf
3 changed files with 3 additions and 3 deletions
|
|
@ -3502,7 +3502,7 @@ static CURLcode ossl_init_ech(struct ossl_ctx *octx,
|
|||
}
|
||||
else {
|
||||
const struct Curl_https_rrinfo *rinfo =
|
||||
Curl_conn_dns_get_https(data, cf->sockindex, peer->peer);
|
||||
Curl_conn_dns_get_https(data, cf->sockindex, peer->origin);
|
||||
|
||||
if(rinfo && rinfo->echconfiglist) {
|
||||
const unsigned char *ecl = rinfo->echconfiglist;
|
||||
|
|
|
|||
|
|
@ -983,7 +983,7 @@ init_config_builder_ech(struct Curl_easy *data,
|
|||
else {
|
||||
const struct ssl_connect_data *connssl = cf->ctx;
|
||||
const struct Curl_https_rrinfo *rinfo =
|
||||
Curl_conn_dns_get_https(data, cf->sockindex, connssl->peer.peer);
|
||||
Curl_conn_dns_get_https(data, cf->sockindex, connssl->peer.origin);
|
||||
|
||||
if(!rinfo || !rinfo->echconfiglist) {
|
||||
failf(data, "rustls: ECH requested but no ECHConfig available");
|
||||
|
|
|
|||
|
|
@ -1248,7 +1248,7 @@ static CURLcode wssl_init_ech(struct wssl_ctx *wctx,
|
|||
}
|
||||
else {
|
||||
const struct Curl_https_rrinfo *rinfo =
|
||||
Curl_conn_dns_get_https(data, cf->sockindex, peer->peer);
|
||||
Curl_conn_dns_get_https(data, cf->sockindex, peer->origin);
|
||||
|
||||
if(rinfo && rinfo->echconfiglist) {
|
||||
const unsigned char *ecl = rinfo->echconfiglist;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue