Warning fix
This commit is contained in:
@@ -53,8 +53,10 @@ void ndpi_search_teamspeak(struct ndpi_detection_module_struct *ndpi_struct, str
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(packet->tcp != NULL) {
|
if(packet->tcp != NULL) {
|
||||||
|
#if WEAK_DETECTION_CODE_DISABLED
|
||||||
u_int16_t tdport, tsport;
|
u_int16_t tdport, tsport;
|
||||||
tsport = ntohs(packet->tcp->source), tdport = ntohs(packet->tcp->dest);
|
tsport = ntohs(packet->tcp->source), tdport = ntohs(packet->tcp->dest);
|
||||||
|
#endif
|
||||||
/* https://github.com/Youx/soliloque-server/wiki/Connection-packet */
|
/* https://github.com/Youx/soliloque-server/wiki/Connection-packet */
|
||||||
if(packet->payload_packet_len >= 20) {
|
if(packet->payload_packet_len >= 20) {
|
||||||
if(((memcmp(packet->payload, "\xf4\xbe\x03\x00", 4) == 0)) ||
|
if(((memcmp(packet->payload, "\xf4\xbe\x03\x00", 4) == 0)) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user