aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-04-10 09:56:06 +0200
committerGitHub <noreply@github.com>2024-04-10 09:56:06 +0200
commit54517d8e04f2ae07f338d09d7fea3db5e26b8fbc (patch)
tree39150577ff155bab49725b0074de4cc31f374faa /src
parentbd2968dcd36e78adcef0570550277332d164fc2d (diff)
Fix a warning and restore a unit test result (#2379)
Diffstat (limited to 'src')
-rw-r--r--src/lib/protocols/http.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 8d5d92f3e..38c1a698c 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -65,8 +65,7 @@ static char* forge_attempt_msg(struct ndpi_flow_struct *flow, char *msg, char *b
/* *********************************************** */
-static void ndpi_set_binary_data_transfer(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow,
+static void ndpi_set_binary_data_transfer(struct ndpi_flow_struct *flow,
char *msg) {
char buf[256];
@@ -284,7 +283,7 @@ static ndpi_protocol_category_t ndpi_http_check_content(struct ndpi_detection_mo
NDPI_LOG_INFO(ndpi_struct, "found HTTP file transfer");
snprintf(str, sizeof(str), "Found binary mime %s", cmp_mimes[i]);
- ndpi_set_binary_data_transfer(ndpi_struct, flow, str);
+ ndpi_set_binary_data_transfer(flow, str);
found = true;
break;
}
@@ -382,7 +381,7 @@ static ndpi_protocol_category_t ndpi_http_check_content(struct ndpi_detection_mo
/* No executable but just data transfer */
snprintf(str, sizeof(str), "File download %s",
flow->http.filename ? flow->http.filename : "");
- ndpi_set_binary_data_transfer(ndpi_struct, flow, str);
+ ndpi_set_binary_data_transfer(flow, str);
}
}
}