From b32feaf623cf99b141e03bdd9d79f896e44286c8 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 6 Sep 2019 11:38:39 +1000 Subject: [PATCH] check the result from dns_message_headertotext --- bin/tools/mdig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/tools/mdig.c b/bin/tools/mdig.c index 6188f9a038..06870d51b1 100644 --- a/bin/tools/mdig.c +++ b/bin/tools/mdig.c @@ -364,6 +364,7 @@ recvresponse(isc_task_t *task, isc_event_t *event) { printf(" %s:\n", "response_message_data"); result = dns_message_headertotext(response, style, flags, buf); + CHECK("dns_message_headertotext", result); } else if (display_comments && !display_short_form) { printf(";; Got answer:\n");