Updated content-type parsing

This commit is contained in:
Luca
2019-10-31 09:31:26 +01:00
parent e272db0f7f
commit 2ab0433aca
4 changed files with 5 additions and 11 deletions
+2 -2
View File
@@ -5096,10 +5096,10 @@ void ndpi_parse_packet_line_info(struct ndpi_detection_module_struct *ndpi_str,
int i;
for(i=0; separator[i] != '\0'; i++) {
char *c = strchr((char*)packet->content_line.ptr, separator[i]);
char *c = memchr((char*)packet->content_line.ptr, separator[i], packet->content_line.len);
if(c != NULL)
packet->content_line.len = c - (char*)packet->content_line.ptr;
packet->content_line.len = c - (char*)packet->content_line.ptr;
}
}