diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2020-04-15 18:07:24 +0200 |
---|---|---|
committer | Nardi Ivan <nardi.ivan@gmail.com> | 2020-04-20 16:53:39 +0200 |
commit | b1a6c6b8957b62ec8ada423abfdcfa5471c00147 (patch) | |
tree | 0d03df67b8fa0647050a74f473985301a027fa79 /src/lib/protocols/rx.c | |
parent | e60354996737df132ef4a2a681839e1bf403c296 (diff) |
Fix some compilation warnings
Diffstat (limited to 'src/lib/protocols/rx.c')
-rw-r--r-- | src/lib/protocols/rx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/protocols/rx.c b/src/lib/protocols/rx.c index 64dbe7d0f..3bcab3b85 100644 --- a/src/lib/protocols/rx.c +++ b/src/lib/protocols/rx.c @@ -129,19 +129,24 @@ void ndpi_check_rx(struct ndpi_detection_module_struct *ndpi_struct, header->flags == PLUS_2 || header->flags == REQ_ACK || header->flags == MORE_1) goto security; + /* Fall-through */ case ACK: if(header->flags == CLIENT_INIT_1 || header->flags == CLIENT_INIT_2 || header->flags == EMPTY) goto security; + /* Fall-through */ case CHALLENGE: if(header->flags == EMPTY || header->call_number == 0) goto security; + /* Fall-through */ case RESPONSE: if(header->flags == EMPTY || header->call_number == 0) goto security; + /* Fall-through */ case ACKALL: if(header->flags == EMPTY) goto security; + /* Fall-through */ case BUSY: goto security; case ABORT: |