From: maxtors Date: Tue, 26 Apr 2016 11:53:42 +0000 (+0200) Subject: Changed "enabled" parsing to use ConfValIs(true|false) X-Git-Tag: suricata-3.1RC1~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16e4c92b69da3274e294dd80aed2dce3cdb955db;p=thirdparty%2Fsuricata.git Changed "enabled" parsing to use ConfValIs(true|false) --- diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index d7aeb81cc1..d885a76198 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -280,9 +280,9 @@ int AppLayerParserConfParserEnabled(const char *ipproto, } } - if (strcasecmp(node->val, "yes") == 0) { + if (ConfValIsTrue(node->val)) { goto enabled; - } else if (strcasecmp(node->val, "no") == 0) { + } else if (ConfValIsFalse(node->val)) { goto disabled; } else if (strcasecmp(node->val, "detection-only") == 0) { goto disabled;