ndpireader: fix "Discarded bytes" statistics (#1877)

This commit is contained in:
Ivan Nardi
2023-01-27 07:09:34 +01:00
committed by GitHub
parent 6d00a9e0bd
commit 3e6cadbb76
+1 -1
View File
@@ -1641,7 +1641,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
flow->has_human_readeable_strings = 0;
}
} else { // flow is NULL
workflow->stats.total_discarded_bytes++;
workflow->stats.total_discarded_bytes += header->len;
return(nproto);
}