Added fix for fixing a crash when some CLI combination options are used

This commit is contained in:
Luca
2015-06-23 07:06:09 -07:00
parent 4f691de0b5
commit 806c1a48d5
+3 -1
View File
@@ -1233,7 +1233,9 @@ static void printResults(u_int64_t tot_usec) {
if(enable_protocol_guess)
printf("\tGuessed flow protos: %-13u\n", cumulative_stats.guessed_flow_protocols);
}
} else if(json_flag) {
}
if(json_flag) {
#ifdef HAVE_JSON_C
if((json_fp = fopen(_jsonFilePath,"w")) == NULL) {
printf("Error createing .json file %s\n", _jsonFilePath);