diff options
author | theirix <theirix@gmail.com> | 2016-08-17 14:15:36 +0300 |
---|---|---|
committer | theirix <theirix@gmail.com> | 2016-08-22 15:09:06 +0300 |
commit | 76f74540497535373ac3fe6069faef4011cee025 (patch) | |
tree | 9f2d1f9d93c01e71e55ea540ba74b00158ecb5d3 /src/lib/protocols/drda.c | |
parent | fb687b7217a0636800266373a0ebe969fbf253b7 (diff) |
Fixed drda loop logic
Diffstat (limited to 'src/lib/protocols/drda.c')
-rw-r--r-- | src/lib/protocols/drda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/drda.c b/src/lib/protocols/drda.c index 052dad8f0..fe75379ff 100644 --- a/src/lib/protocols/drda.c +++ b/src/lib/protocols/drda.c @@ -52,7 +52,7 @@ void ndpi_search_drda(struct ndpi_detection_module_struct *ndpi_struct, u_int16_t len = ntohs(drda->length); /* check first header */ - if(len != ntohs(drda->length2) + 6 && + if(len != ntohs(drda->length2) + 6 || drda->magic != 0xd0) goto no_drda; @@ -67,7 +67,7 @@ void ndpi_search_drda(struct ndpi_detection_module_struct *ndpi_struct, drda = (struct ndpi_drda_hdr *)(packet->payload + count); len = ntohs(drda->length); - if(len != ntohs(drda->length2) + 6 && + if(len != ntohs(drda->length2) + 6 || drda->magic != 0xd0) goto no_drda; |