/* Set the global run mode */
run_mode = suri.run_mode;
+ /* run_mode should be set here */
+ if (suri.run_mode == RUNMODE_UNKNOWN) {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
if (suri.run_mode == RUNMODE_UNITTEST)
return SuriRunUnittests(0, suri.regex_arg);
DefragInit();
}
- if (suri.run_mode == RUNMODE_UNKNOWN) {
- usage(argv[0]);
- exit(EXIT_FAILURE);
- }
-
if (suri.run_mode == RUNMODE_ENGINE_ANALYSIS) {
SCLogInfo("== Carrying out Engine Analysis ==");
char *temp = NULL;