diff options
author | Luca Deri <deri@ntop.org> | 2016-09-27 19:24:57 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2016-09-27 19:24:57 +0200 |
commit | a0a8c0294d5e50396517cdc445478e3cf73b42f4 (patch) | |
tree | 4ee28cdd3f9326d70dd512485cbcfc97e9190764 /src | |
parent | 9fe92f6145d73722ff8637a9279f9d2f8546f17d (diff) |
Fix for #249
Diffstat (limited to 'src')
-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; |