]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix logic operator.
authorEric Leblond <eric@regit.org>
Tue, 18 Sep 2012 13:01:12 +0000 (15:01 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 19 Sep 2012 09:33:58 +0000 (11:33 +0200)
Previous patches on the same subject did not fixed this error as it
was undetected because the code was not compiled on my setup.

src/source-erf-dag.c
src/source-napatech.c
src/source-pfring.c

index 04aab9367e2cfaa335a25a7ee5f62dbaf2a405a2..bc9b992e36ef86a65a776d28e4b4b2505bbec123 100644 (file)
@@ -315,7 +315,7 @@ TmEcode ReceiveErfDagLoop(ThreadVars *tv, void *data, void *slot)
 
     while (1)
     {
-        if (suricata_ctl_flags & (SURICATA_STOP || SURICATA_KILL)) {
+        if (suricata_ctl_flags & (SURICATA_STOP | SURICATA_KILL)) {
             SCReturnInt(TM_ECODE_OK);
         }
 
index 1939d900e2ea92e4ff61fd1eacf1ff84c626087d..f74d4ab16e5003ad3bf8e04bd47ca22fd75964b8 100644 (file)
@@ -210,7 +210,7 @@ TmEcode NapatechFeedLoop(ThreadVars *tv, void *data, void *slot)
     ntv->slot = s->slot_next;
 
     while (1) {
-        if (suricata_ctl_flags & (SURICATA_STOP || SURICATA_KILL)) {
+        if (suricata_ctl_flags & (SURICATA_STOP | SURICATA_KILL)) {
             SCReturnInt(TM_ECODE_OK);
         }
 
index fc35003dca2eb4d40208ee111fb31ad38f2899fd..e433fc40d555ed7ff9f21b4e6ed4e2fbce5d9dce 100644 (file)
@@ -252,7 +252,7 @@ TmEcode ReceivePfringLoop(ThreadVars *tv, void *data, void *slot)
     ptv->slot = s->slot_next;
 
     while(1) {
-        if (suricata_ctl_flags & (SURICATA_STOP || SURICATA_KILL)) {
+        if (suricata_ctl_flags & (SURICATA_STOP | SURICATA_KILL)) {
             SCReturnInt(TM_ECODE_OK);
         }