Skip to content

Commit

Permalink
Fix for #249
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Sep 27, 2016
1 parent 9fe92f6 commit a0a8c02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/ndpi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0a8c02

Please sign in to comment.