summaryrefslogtreecommitdiff
path: root/src/clients/s6-dnsip.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-03-17 13:53:52 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-03-17 13:53:52 +0000
commitd62aec3ffabf77655c6bd028cf45213e034522fb (patch)
tree73f5e22595b5738b0a36e29f9819e84ac1d7a2ac /src/clients/s6-dnsip.c
parent4a04ef3219548a450cf3b7df2cca9f009c027167 (diff)
downloads6-dns-d62aec3ffabf77655c6bd028cf45213e034522fb.tar.xz
bugfix: s6dns_resolve_aaaaa API on double nodata
Diffstat (limited to 'src/clients/s6-dnsip.c')
-rw-r--r--src/clients/s6-dnsip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/s6-dnsip.c b/src/clients/s6-dnsip.c
index f4c1a58..3b86fe0 100644
--- a/src/clients/s6-dnsip.c
+++ b/src/clients/s6-dnsip.c
@@ -48,7 +48,7 @@ int main (int argc, char const *const *argv)
{
int r = s6dns_resolve_aaaaa_g(&ips, argv[0], strlen(argv[0]), flagqualify, &deadline) ;
if (r < 0) strerr_diefu2sys((errno == ETIMEDOUT) ? 99 : 111, "resolve ", argv[0]) ;
- if (!r) strerr_diefu4x(2, "resolve ", argv[0], ": ", s6dns_constants_error_str(errno)) ;
+ if (!r && errno) strerr_diefu4x(2, "resolve ", argv[0], ": ", s6dns_constants_error_str(errno)) ;
}
if (!genalloc_len(ip46full_t, &ips)) return 1 ;