aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r--src/lib/protocols/http.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 8c3da111c..0d0247574 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -67,8 +67,12 @@ static void ndpi_set_binary_application_transfer(struct ndpi_detection_module_st
|| ends_with(ndpi_struct, (char*)flow->host_server_name, ".windows.com")
)
;
- else
- ndpi_set_risk(flow, NDPI_BINARY_APPLICATION_TRANSFER, msg);
+ else {
+ if((flow->http.response_status_code >= 200) && (flow->http.response_status_code < 300))
+ ndpi_set_risk(flow, NDPI_BINARY_APPLICATION_TRANSFER, msg);
+ else
+ ndpi_set_risk(flow, NDPI_BINARY_TRANSFER_ATTEMPT, msg);
+ }
}
/* *********************************************** */