diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 55168fa699..d8323c6f66 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -3212,11 +3212,11 @@ udp_ready(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) { if (next != NULL) { start_udp(next); + check_if_done(); } else { clear_current_lookup(); } - check_if_done(); return; } @@ -3609,11 +3609,11 @@ tcp_connected(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) { if (next != NULL) { start_tcp(next); + check_if_done(); } else { clear_current_lookup(); } - check_if_done(); return; }