fix missing conditional and

This commit is contained in:
Campus 2016-04-26 15:02:32 +02:00
parent 34ce35dcfa
commit 1d17ece9ce

View file

@ -116,7 +116,7 @@ void ndpi_check_rx(struct ndpi_detection_module_struct *ndpi_struct,
/* FLAGS fields */
if(header->flags != EMPTY && header->flags != LAST_PKT &&
header->flags != PLUS_0 && header->flags != PLUS_1 &&
header->flags != PLUS_2 && header->flags != REQ_ACK &
header->flags != PLUS_2 && header->flags != REQ_ACK &&
header->flags != MORE_1 && header->flags != CLIENT_INIT_1 &&
header->flags != CLIENT_INIT_2) {
exclude = 1;
@ -126,7 +126,7 @@ void ndpi_check_rx(struct ndpi_detection_module_struct *ndpi_struct,
if(header->type == DATA) {
if(header->flags != LAST_PKT && header->flags != EMPTY &&
header->flags != PLUS_0 && header->flags != PLUS_1 &&
header->flags != PLUS_2 && header->flags != REQ_ACK &
header->flags != PLUS_2 && header->flags != REQ_ACK &&
header->flags != MORE_1) {
exclude = 1;
goto end;