]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[rt31459d] fix first if test in setoption
authorEvan Hunt <each@isc.org>
Wed, 13 Sep 2017 06:51:51 +0000 (23:51 -0700)
committerEvan Hunt <each@isc.org>
Wed, 13 Sep 2017 06:51:51 +0000 (23:51 -0700)
(cherry picked from commit abda73147dd5be7663b915808388e05a40492b8b)

bin/dig/nslookup.c

index 613269d67bd91d5c9c2b049e77e1e3b8322012f1..314d86b3c67e8b4e12a756563c94fcbb5b1d7f70 100644 (file)
@@ -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]))