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 1d3085c5c4b9bb47c0fe5f191ea3664b29fd8f7c..965706fed1c51d46e25e5f60856ef691c318bfe3 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()