Crash fix when not using CSV output
This commit is contained in:
@@ -1138,7 +1138,7 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa
|
|||||||
if(enable_joy_stats) {
|
if(enable_joy_stats) {
|
||||||
/* Print entropy values for monitored flows. */
|
/* Print entropy values for monitored flows. */
|
||||||
flowGetBDMeanandVariance(flow);
|
flowGetBDMeanandVariance(flow);
|
||||||
fprintf(csv_fp, "\n");
|
if(csv_fp) fprintf(csv_fp, "\n");
|
||||||
fflush(out);
|
fflush(out);
|
||||||
fprintf(out, "[score: %.4f]", flow->entropy.score);
|
fprintf(out, "[score: %.4f]", flow->entropy.score);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user