From: Mark Andrews Date: Wed, 13 Sep 2017 01:57:00 +0000 (+1000) Subject: fix first if test in setoption X-Git-Tag: v9.12.0b1~225 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=abda73147dd5be7663b915808388e05a40492b8b;p=thirdparty%2Fbind9.git fix first if test in setoption --- diff --git a/bin/dig/nslookup.c b/bin/dig/nslookup.c index 613269d67bd..314d86b3c67 100644 --- a/bin/dig/nslookup.c +++ b/bin/dig/nslookup.c @@ -642,7 +642,7 @@ setoption(char *opt) { #define CHECKOPT(A, N) \ ((l >= N) && (l < sizeof(A)) && (strncasecmp(opt, A, l) == 0)) - if (CHECKOPT("all", 3) == 0) { + if (CHECKOPT("all", 3)) { show_settings(ISC_TRUE, ISC_FALSE); } else if (strncasecmp(opt, "class=", 6) == 0) { if (testclass(&opt[6]))