diff options
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index c9ead2f61..749a740b4 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3705,7 +3705,9 @@ void ndpi_parse_packet_line_info(struct ndpi_detection_module_struct *ndpi_struc packet->http_response.len = 0; if((packet->payload_packet_len == 0) - || (packet->payload == NULL)) + || (packet->payload == NULL) + || (end == 0) + ) return; packet->line[packet->parsed_lines].ptr = packet->payload; |