]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Disable run-time changes to DisableIOCP: They do not work
authorNick Mathewson <nickm@torproject.org>
Fri, 19 Aug 2011 21:07:54 +0000 (17:07 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 19 Aug 2011 21:07:54 +0000 (17:07 -0400)
src/or/config.c

index 716d83ab0d43c35b2ec04876b6878603a62bafa4..dbc355d72877fddeb8666ade51be986fd2701e4c 100644 (file)
@@ -3966,6 +3966,12 @@ options_transition_allowed(const or_options_t *old,
     return -1;
   }
 
+  if (old->DisableIOCP != new_val->DisableIOCP) {
+    *msg = tor_strdup("While Tor is running, changing DisableIOCP "
+                      "is not allowed.");
+    return -1;
+  }
+
   return 0;
 }