Skip to content

Commit

Permalink
Fix category detection due to missing initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-f committed Apr 5, 2019
1 parent a455e0d commit 796472c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ndpi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4731,7 +4731,7 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct
flow->guessed_host_protocol_id = ndpi_guess_host_protocol_id(ndpi_struct, flow);

if(ndpi_struct->custom_categories.categories_loaded && flow->packet.iph) {
ndpi_protocol ret;
ndpi_protocol ret = { NDPI_PROTOCOL_UNKNOWN, NDPI_PROTOCOL_UNKNOWN, NDPI_PROTOCOL_CATEGORY_UNSPECIFIED };

ndpi_fill_ip_protocol_category(ndpi_struct, flow->packet.iph->saddr, flow->packet.iph->daddr, &ret);
flow->guessed_header_category = ret.category;
Expand Down

0 comments on commit 796472c

Please sign in to comment.