From 3e777e1e1febf3991e5fdcf8170a79fd36662f30 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 13 Sep 2017 11:57:00 +1000 Subject: [PATCH] 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 dcd646d687..096fa6ada2 100644 --- a/bin/dig/nslookup.c +++ b/bin/dig/nslookup.c @@ -599,7 +599,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]))