From 34b0bb84ca8154563ea98ebdceeba8d837ccb511 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 14 Jul 2020 23:36:57 -0700 Subject: [PATCH] fixup! checkpoint: convert dig to use netmgr for TCP --- bin/dig/dighost.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 16b93662fd..2a089aaa61 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -3244,7 +3244,9 @@ tcp_connected(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) { if (exitcode < 9) { exitcode = 9; } - isc_nmhandle_unref(handle); + if (handle != NULL) { + isc_nmhandle_unref(handle); + } l = query->lookup; if ((l->current_query != NULL) && (ISC_LINK_LINKED(l->current_query, link))) {