diff options
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r-- | src/lib/protocols/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 0d0247574..311761e84 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -193,10 +193,10 @@ static void ndpi_validate_http_content(struct ndpi_detection_module_struct *ndpi packet->http_check_content = 1; - if(len >= 8 /* 4 chars for \r\n\r\n and at least 4 charts for content guess */) { - double_ret += 4; - - ndpi_http_check_human_redeable_content(ndpi_struct, flow, double_ret, len); + if (len > 4 /* 4 chars for \r\n\r\n and at least 4 charts for content guess */) { + double_ret += 4; + len -= 4; + ndpi_http_check_human_redeable_content(ndpi_struct, flow, double_ret, len); } } |