diff options
author | Luca <deri@ntop.org> | 2019-10-31 09:31:26 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-10-31 09:31:26 +0100 |
commit | 2ab0433aca70bf591941df946f7605306bd0d407 (patch) | |
tree | b376d8aa0b9c81c0c4da22bbacca3a8f9a75614d /src/lib | |
parent | e272db0f7fb0c599355e7a5aae993aea3c30db60 (diff) |
Updated content-type parsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 7a2d5a01e..e71ca668e 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -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; } } |