From: Aram Sargsyan Date: Thu, 31 Mar 2022 22:00:21 +0000 (+0000) Subject: Fix using unset pointer when printing a debug message in dighost.c X-Git-Tag: v9.19.0~15^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b2b3e589c2ffa63af1437f0c887304716bc4d96;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 721c68f20f8..57ccf415e4a 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);