From 5b2b3e589c2ffa63af1437f0c887304716bc4d96 Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Thu, 31 Mar 2022 22:00:21 +0000 Subject: [PATCH] Fix using unset pointer when printing a debug message in dighost.c The used `query->handle` is always `NULL` at this point. Change the code to use `handle` instead. --- bin/dig/dighost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 721c68f20f..57ccf415e4 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -3135,7 +3135,7 @@ udp_ready(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) { query_attach(query, &readquery); debug("recving with lookup=%p, query=%p, handle=%p", query->lookup, - query, query->handle); + query, handle); query->handle = handle; isc_nmhandle_attach(handle, &query->readhandle);