bin/dig/dighost.c: Fix REQUIRE(!= NULL) condition after the variable has been dereferenced

(cherry picked from commit 9366ca769f)
This commit is contained in:
Ondřej Surý 2019-09-27 08:48:06 +02:00
parent a2c7b2f619
commit dfe1bb5388

View file

@ -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);