diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 3efe6a243b..7e8886061e 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -2028,6 +2028,9 @@ setup_lookup(dig_lookup_t *lookup) { char cookiebuf[256]; char *origin = NULL; char *textname = NULL; + + REQUIRE(lookup != NULL); + #ifdef HAVE_LIBIDN2 char idn_origin[MXNAME], idn_textname[MXNAME]; @@ -2036,7 +2039,6 @@ setup_lookup(dig_lookup_t *lookup) { check_result(result, "dns_name_settotextfilter"); #endif /* HAVE_LIBIDN2 */ - REQUIRE(lookup != NULL); INSIST(!free_now); debug("setup_lookup(%p)", lookup);