diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index a8c0e4d808..6d2fe1f558 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -3244,6 +3244,7 @@ connect_done(isc_task_t *task, isc_event_t *event) { UNLOCK_LOOKUP; return; } + exitcode = 0; if (keep_open) { if (keep != NULL) isc_socket_detach(&keep);