Skip to content

Commit

Permalink
removed useless call of ndpi_set_risk func (#2022)
Browse files Browse the repository at this point in the history
  • Loading branch information
koltiradw authored Jun 22, 2023
1 parent cdc0bb8 commit aa25c06
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/protocols/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,6 @@ static void ndpi_search_http_tcp(struct ndpi_detection_module_struct *ndpi_struc
ndpi_http_method ndpi_get_http_method(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow) {
if(!flow) {
ndpi_set_risk(ndpi_struct, flow, NDPI_MALFORMED_PACKET, (char*)"Unknown HTTP Method");
return(NDPI_HTTP_METHOD_UNKNOWN);
} else
return(flow->http.method);
Expand Down

0 comments on commit aa25c06

Please sign in to comment.