mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
libdns: For SOCKS connection, just fails.
* dirmngr/dns.c (dns_res_exec): If it's DNS_SO_SOCKS_CONN, don't iterate to other server, but return the error immediately. -- In the function libdns_switch_port_p in dns-stuff.c, this patch allows to fallback using TOR_PORT2 correctly. Fixes-commit: bcdbf8b8ebe9d61160e0b007dabe1b6462ffbc93 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
592deeddb9
commit
1aacd12471
@ -8846,7 +8846,7 @@ exec:
|
||||
dgoto(R->sp, DNS_R_FOREACH_A);
|
||||
|
||||
error = dns_so_check(&R->so);
|
||||
if (error == ECONNREFUSED)
|
||||
if (R->so.state != DNS_SO_SOCKS_CONN && error == ECONNREFUSED)
|
||||
dgoto(R->sp, DNS_R_FOREACH_A);
|
||||
else if (error)
|
||||
goto error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user