From 524c6271948129f04d393220026628b21627fdc8 Mon Sep 17 00:00:00 2001 From: maxtors Date: Thu, 5 May 2016 10:41:42 +0200 Subject: [PATCH] Use ConfValIs* for parsing pcap-file.checksum-checks. --- src/source-pcap-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/source-pcap-file.c b/src/source-pcap-file.c index 4df2c72a61..cff52542a1 100644 --- a/src/source-pcap-file.c +++ b/src/source-pcap-file.c @@ -352,9 +352,9 @@ TmEcode ReceivePcapFileThreadInit(ThreadVars *tv, void *initdata, void **data) } else { if (strcmp(tmpstring, "auto") == 0) { pcap_g.conf_checksum_mode = CHECKSUM_VALIDATION_AUTO; - } else if (strcmp(tmpstring, "yes") == 0) { + } else if (ConfValIsTrue(tmpstring)){ pcap_g.conf_checksum_mode = CHECKSUM_VALIDATION_ENABLE; - } else if (strcmp(tmpstring, "no") == 0) { + } else if (ConfValIsFalse(tmpstring)) { pcap_g.conf_checksum_mode = CHECKSUM_VALIDATION_DISABLE; } }