aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/stun.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2015-08-03 14:35:31 +0200
committerLuca Deri <deri@ntop.org>2015-08-03 14:35:31 +0200
commit449742e69dbb7bfb34b7436e5e83549a9d5a4293 (patch)
tree275d13f4099511e336f291f35abb5aa6b689be4e /src/lib/protocols/stun.c
parentbc786b48fae9062a9ba02f99ac35c3da56ac07a1 (diff)
Fixed a bug in the STUN dissector courtesy of Asher Yermiyahu
Fixed a bug in the NetFlow dissector that caused flows to be wrongly decoded as Netflow Updated test results for starcraft and whatsapp
Diffstat (limited to 'src/lib/protocols/stun.c')
-rw-r--r--src/lib/protocols/stun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c
index 1f84b268f..97b3efd67 100644
--- a/src/lib/protocols/stun.c
+++ b/src/lib/protocols/stun.c
@@ -174,8 +174,8 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct *
if(
- ((flow->num_stun_udp_pkts > 0) && (msg_type = 0x0800))
- || ((msg_type = 0x0800) && (msg_len == 106))
+ ((flow->num_stun_udp_pkts > 0) && (msg_type == 0x0800))
+ || ((msg_type == 0x0800) && (msg_len == 106))
) {
*is_whatsapp = 1;
return NDPI_IS_STUN; /* This is WhatsApp Voice */