mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
+1
-1
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user