Skip to content

Commit

Permalink
Fix export/serialization of flow->risk (#1885)
Browse files Browse the repository at this point in the history
Any risks bigger than 31 was never exported/serialized; found looking
a the fuzz coverage report.
  • Loading branch information
IvanNardi authored Feb 14, 2023
1 parent 090ba57 commit f2f8f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/include/ndpi_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ extern "C" {
void ndpi_serialize_confidence(ndpi_serializer *serializer, ndpi_confidence_t confidence);
void ndpi_serialize_proto(struct ndpi_detection_module_struct *ndpi_struct,
ndpi_serializer *serializer,
ndpi_risk_enum risk,
ndpi_risk risk,
ndpi_confidence_t confidence,
ndpi_protocol l7_protocol);
const char* ndpi_risk2str(ndpi_risk_enum risk);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ndpi_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ void ndpi_serialize_confidence(ndpi_serializer *serializer,

void ndpi_serialize_proto(struct ndpi_detection_module_struct *ndpi_struct,
ndpi_serializer *serializer,
ndpi_risk_enum risk,
ndpi_risk risk,
ndpi_confidence_t confidence,
ndpi_protocol l7_protocol)
{
Expand Down

0 comments on commit f2f8f9d

Please sign in to comment.