aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremanuele-f <black.silver@hotmail.it>2019-08-29 16:49:44 +0200
committeremanuele-f <black.silver@hotmail.it>2019-08-29 16:49:44 +0200
commit6781485c423e6caf6e98a3435833b27a588188de (patch)
tree27fb51edf45519460fda28e2d23d1dddd47c3b1d
parentd27e7e2786f22e73e2cdd4c4e2546a2321005aaa (diff)
Warning fix
-rw-r--r--src/lib/protocols/teamspeak.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/protocols/teamspeak.c b/src/lib/protocols/teamspeak.c
index 170be1d7f..0fb538e36 100644
--- a/src/lib/protocols/teamspeak.c
+++ b/src/lib/protocols/teamspeak.c
@@ -53,8 +53,10 @@ void ndpi_search_teamspeak(struct ndpi_detection_module_struct *ndpi_struct, str
#endif
if(packet->tcp != NULL) {
+#if WEAK_DETECTION_CODE_DISABLED
u_int16_t tdport, tsport;
tsport = ntohs(packet->tcp->source), tdport = ntohs(packet->tcp->dest);
+#endif
/* https://github.com/Youx/soliloque-server/wiki/Connection-packet */
if(packet->payload_packet_len >= 20) {
if(((memcmp(packet->payload, "\xf4\xbe\x03\x00", 4) == 0)) ||