]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix using unset pointer when printing a debug message in dighost.c
authorAram Sargsyan <aram@isc.org>
Thu, 31 Mar 2022 22:00:21 +0000 (22:00 +0000)
committerAram Sargsyan <aram@isc.org>
Tue, 5 Apr 2022 11:20:42 +0000 (11:20 +0000)
The used `query->handle` is always `NULL` at this point.

Change the code to use `handle` instead.

bin/dig/dighost.c

index 721c68f20f84ee5eb7f98016138f30b0b7ba012c..57ccf415e4a33edf338742b245e8dc9310d22a2d 100644 (file)
@@ -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);