libdns: Fix for non-FQDN hostname.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 18 Jun 2018 01:13:35 +0000 (10:13 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 18 Jun 2018 08:27:07 +0000 (17:27 +0900)
commit87d0ecf8a1b80139a6cab2a79f1ca6e287207999
treef16e225b83989dc05fd5730b6b9091f9ff5bbaad
parent699fe4b36f62b0f4d4e21a85ee7c9ae13377d6cb
libdns: Fix for non-FQDN hostname.

* dirmngr/dns.c (dns_resconf_open): Clear search[0] for non-FQDN
hostname.

--

Cherry pick from master commit:
    a4a054bf14fa855715faee01a152755c4e2a74f7

GnuPG-bug-id: T3803
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
dirmngr/dns.c