From: Evan Hunt Date: Wed, 13 Sep 2017 06:51:51 +0000 (-0700) Subject: [rt31459d] fix first if test in setoption X-Git-Tag: v9.12.0b1~190^2~1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=06b082c2306cf97a7ab719ac4aab0e4e40fcd5b6;p=thirdparty%2Fbind9.git [rt31459d] fix first if test in setoption (cherry picked from commit abda73147dd5be7663b915808388e05a40492b8b) --- 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]))