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
This commit is contained in:
Roger Dingledine
2007-02-10 07:04:46 +00:00
parent b3d91d72b8
commit 01ddb05fba
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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++;