From 01ddb05fba01b8bf5f9f48514ef17ec77594ac85 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 10 Feb 2007 07:04:46 +0000 Subject: 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 --- src/or/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/control.c') 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++; -- cgit v1.2.3-54-g00ecf