aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 6017bab23..e5609f3b0 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1268,11 +1268,11 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa
if(flow->http.content_type[0] != '\0')
fprintf(out, "[Content-Type: %s]", flow->http.content_type);
-
- if(flow->http.user_agent[0] != '\0')
- fprintf(out, "[User-Agent: %s]", flow->http.user_agent);
}
+ if(flow->http.user_agent[0] != '\0')
+ fprintf(out, "[User-Agent: %s]", flow->http.user_agent);
+
if(flow->risk) {
u_int i;
@@ -3327,10 +3327,10 @@ static void dgaUnitTest() {
assert(ndpi_str != NULL);
for(i=0; dga[i] != NULL; i++)
- assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)dga[i]) == 1);
+ assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)dga[i], 1) == 1);
for(i=0; non_dga[i] != NULL; i++)
- assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)non_dga[i]) == 0);
+ assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)non_dga[i], 1) == 0);
ndpi_exit_detection_module(ndpi_str);
}