diff --git a/src/source-erf-dag.c b/src/source-erf-dag.c index 04aab9367e..bc9b992e36 100644 --- a/src/source-erf-dag.c +++ b/src/source-erf-dag.c @@ -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); } diff --git a/src/source-napatech.c b/src/source-napatech.c index 1939d900e2..f74d4ab16e 100644 --- a/src/source-napatech.c +++ b/src/source-napatech.c @@ -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); } diff --git a/src/source-pfring.c b/src/source-pfring.c index fc35003dca..e433fc40d5 100644 --- a/src/source-pfring.c +++ b/src/source-pfring.c @@ -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); }