Previous patches on the same subject did not fixed this error as it
was undetected because the code was not compiled on my setup.
while (1)
{
- if (suricata_ctl_flags & (SURICATA_STOP || SURICATA_KILL)) {
+ if (suricata_ctl_flags & (SURICATA_STOP | SURICATA_KILL)) {
SCReturnInt(TM_ECODE_OK);
}
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);
}
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);
}