diff options
Diffstat (limited to 'src')
-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; |