aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/viber.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/viber.c')
-rw-r--r--src/lib/protocols/viber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/viber.c b/src/lib/protocols/viber.c
index 28ac864e7..04f781e7b 100644
--- a/src/lib/protocols/viber.c
+++ b/src/lib/protocols/viber.c
@@ -31,7 +31,7 @@ void ndpi_search_viber(struct ndpi_detection_module_struct *ndpi_struct, struct
NDPI_LOG_DBG(ndpi_struct, "search for VIBER\n");
- if(packet->udp != NULL) {
+ if((packet->udp != NULL) && (packet->payload_packet_len > 5)) {
NDPI_LOG_DBG2(ndpi_struct, "calculating dport over udp\n");
if((packet->payload[2] == 0x03 && packet->payload[3] == 0x00)