From: Nick Mathewson Date: Mon, 15 Nov 2004 04:02:59 +0000 (+0000) Subject: Patch to patch: do not send both error and done for one command. X-Git-Tag: tor-0.0.9pre6~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=076f1209515a027f1d377d06060455a69bb41f0f;p=thirdparty%2Ftor.git Patch to patch: do not send both error and done for one command. svn:r2882 --- diff --git a/src/or/control.c b/src/or/control.c index 8e0c1aeb62..a25e0806d0 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -375,8 +375,9 @@ handle_control_saveconf(connection_t *conn, uint16_t len, if (save_current_config()<0) { send_control_error(conn, ERR_INTERNAL, "Unable to write configuration to disk."); + } else { + send_control_done(conn); } - send_control_done(conn); return 0; }