fixed drda_db2 dissector

This commit is contained in:
Campus
2016-09-27 11:17:06 +02:00
parent 67ac0b431c
commit 9f3804444e
+2 -4
View File
@@ -21,7 +21,7 @@
#ifdef NDPI_PROTOCOL_DRDA
#define DRDA_PORT 50000
//#define DRDA_PORT 50000
struct ndpi_drda_hdr {
u_int16_t length;
@@ -43,9 +43,7 @@ void ndpi_search_drda(struct ndpi_detection_module_struct *ndpi_struct,
if(packet->tcp != NULL) {
/* check port */
if((ntohs(packet->tcp->source) == DRDA_PORT ||
ntohs(packet->tcp->dest) == DRDA_PORT) &&
payload_len >= sizeof(struct ndpi_drda_hdr)) {
if(payload_len >= sizeof(struct ndpi_drda_hdr)) {
struct ndpi_drda_hdr * drda = (struct ndpi_drda_hdr *) packet->payload;