added disabling networking when executing command line functionality
authorHolger Schemel <info@artsoft.org>
Fri, 17 Aug 2018 12:30:27 +0000 (14:30 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 17 Aug 2018 12:30:52 +0000 (14:30 +0200)
Auto-testing solution tapes could cause crashes if network was enabled.

src/init.c

index 1d3085c..965706f 100644 (file)
@@ -5051,6 +5051,9 @@ void Execute_Command(char *command)
   {
     Error(ERR_EXIT_HELP, "unrecognized command '%s'", command);
   }
+
+  /* disable networking if any valid command was recognized */
+  options.network = setup.network_mode = FALSE;
 }
 
 static void InitSetup()