fix first if test in setoption

(cherry picked from commit abda73147d)
This commit is contained in:
Mark Andrews 2017-09-13 11:57:00 +10:00
parent 3534cc3144
commit 3e777e1e1f

View file

@ -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]))