From bf9bec6f91ea8eb0390a7ec7e37736c3f6e8540f 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. (cherry picked from commit 5b2b3e589c2ffa63af1437f0c887304716bc4d96) --- 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 5753a5c424..939fd6690a 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -2956,7 +2956,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);