projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6999c82
)
added disabling networking when executing command line functionality
author
Holger Schemel
<info@artsoft.org>
Fri, 17 Aug 2018 12:30:27 +0000
(14:30 +0200)
committer
Holger 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
patch
|
blob
|
history
diff --git
a/src/init.c
b/src/init.c
index 1d3085c5c4b9bb47c0fe5f191ea3664b29fd8f7c..965706fed1c51d46e25e5f60856ef691c318bfe3 100644
(file)
--- a/
src/init.c
+++ b/
src/init.c
@@
-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()