]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Use ConfValIsTrue for parsing TILE PCIE logging append value.
authormaxtors <moe.andreas@gmail.com>
Thu, 5 May 2016 09:06:57 +0000 (11:06 +0200)
committermaxtors <moe.andreas@gmail.com>
Thu, 5 May 2016 09:13:17 +0000 (11:13 +0200)
src/util-logopenfile-tile.c

index c2414fc49b4552160531f48687c0772bfadc248f..82e9bbf3b4a2f65b3681e5dda24c26b02acab286 100644 (file)
@@ -349,7 +349,7 @@ PcieFile *TileOpenPcieFp(LogFileCtx *log_ctx, const char *path,
                          const char *append_setting)
 {
     PcieFile *ret = NULL;
-    if (strcasecmp(append_setting, "yes") == 0) {
+    if (ConfValIsTrue(append_setting)) {
         ret = TileOpenPcieFpInternal(path, 'a');
     } else {
         ret = TileOpenPcieFpInternal(path, 'w');