From 06b082c2306cf97a7ab719ac4aab0e4e40fcd5b6 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 12 Sep 2017 23:51:51 -0700 Subject: [PATCH] [rt31459d] fix first if test in setoption (cherry picked from commit abda73147dd5be7663b915808388e05a40492b8b) --- bin/dig/nslookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dig/nslookup.c b/bin/dig/nslookup.c index 613269d67b..314d86b3c6 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]))