summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-02-10 07:04:46 +0000
committerRoger Dingledine <arma@torproject.org>2007-02-10 07:04:46 +0000
commit01ddb05fba01b8bf5f9f48514ef17ec77594ac85 (patch)
treec5f47c7dec682bf575b2af5bfcd7dd7d76f285a3
parentb3d91d72b835f0458381ebcfb06a2ece93a1c269 (diff)
downloadtor-01ddb05fba01b8bf5f9f48514ef17ec77594ac85.tar.gz
tor-01ddb05fba01b8bf5f9f48514ef17ec77594ac85.zip
Stop crashing when the controller asks us to resetconf more than
one config option at once. (Vidalia 0.0.11 does this.) Backport candidate. svn:r9545
-rw-r--r--ChangeLog4
-rw-r--r--src/or/control.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b49fb3f0d..bde214a366 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,10 @@ Changes in version 0.1.2.8-alpha - 2007-??-??
- When we start during an accounting interval before it's time to wake
up, remember to wake up at the correct time. (May fix bug 342.)
+ o Major bugfixes (crashes):
+ - Stop crashing when the controller asks us to resetconf more than
+ one config option at once. (Vidalia 0.0.11 does this.)
+
o Minor bugfixes (controller):
- Give the controller END_STREAM_REASON_DESTROY events _before_ we
clear the corresponding on_circuit variable, and remember later that
diff --git a/src/or/control.c b/src/or/control.c
index 46d873b961..42b04b6dd3 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -810,9 +810,9 @@ control_setconf_helper(control_connection_t *conn, uint32_t len, char *body,
++eq;
memcpy(outp, body, eq-body);
outp += (eq-body);
- *outp++ = ' ';
body = eq+1;
if (*eq == '=') {
+ *outp++ = ' ';
if (*body != '\"') {
while (!TOR_ISSPACE(*body))
*outp++ = *body++;