summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-07-23 13:15:03 +0000
committerLaurent Bercot <ska@appnovation.com>2023-07-23 13:15:03 +0000
commit629663ac18d277bd71c8c50e6b53957c741059c1 (patch)
treeb5f22d6878718f740800c3d31a326c63b2cb3708
parent0ddf996441b3465e968be5d0aa61e5b6f3dbdbe2 (diff)
downloads6-dns-629663ac18d277bd71c8c50e6b53957c741059c1.tar.xz
Fix wrong error on nodata in s6-dnsip
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/clients/s6-dnsip.c1
-rw-r--r--src/libs6dns/s6dns_message_parse.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/clients/s6-dnsip.c b/src/clients/s6-dnsip.c
index 041d450..68ce62b 100644
--- a/src/clients/s6-dnsip.c
+++ b/src/clients/s6-dnsip.c
@@ -72,7 +72,6 @@ int main (int argc, char const *const *argv)
{
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 (!genalloc_len(ip46full, &ips)) return 1 ;
diff --git a/src/libs6dns/s6dns_message_parse.c b/src/libs6dns/s6dns_message_parse.c
index 4bf6d7d..bd26f85 100644
--- a/src/libs6dns/s6dns_message_parse.c
+++ b/src/libs6dns/s6dns_message_parse.c
@@ -1,7 +1,9 @@
/* ISC license. */
#include <errno.h>
+
#include <skalibs/error.h>
+
#include <s6-dns/s6dns-constants.h>
#include <s6-dns/s6dns-message.h>