From: maxtors Date: Thu, 5 May 2016 09:06:57 +0000 (+0200) Subject: Use ConfValIsTrue for parsing TILE PCIE logging append value. X-Git-Tag: suricata-3.1RC1~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c15c1f8d5699ff3a2642d4e2770d10b758ab47d;p=thirdparty%2Fsuricata.git Use ConfValIsTrue for parsing TILE PCIE logging append value. --- diff --git a/src/util-logopenfile-tile.c b/src/util-logopenfile-tile.c index c2414fc49b..82e9bbf3b4 100644 --- a/src/util-logopenfile-tile.c +++ b/src/util-logopenfile-tile.c @@ -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');