libdns: For SOCKS connection, just fails.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 2 Jul 2018 01:37:49 +0000 (10:37 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 2 Jul 2018 01:37:49 +0000 (10:37 +0900)
commit1aacd12471935a354cfd85ee1805edc7eb16e6c5
treeb86ae22abf43fbce5dc3aae8dc1ca2b7f7b623dc
parent592deeddb9bf4ae9b3e236b439e2f39644eb6d46
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>
dirmngr/dns.c