mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 07:22:08 -04:00
bin/dig/dighost.c: Fix REQUIRE(!= NULL) condition after the variable has been dereferenced
This commit is contained in:
parent
9ab16d10d4
commit
9366ca769f
1 changed files with 3 additions and 1 deletions
|
|
@ -2045,6 +2045,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];
|
||||
|
||||
|
|
@ -2053,7 +2056,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue