Przeglądaj źródła

Patch to patch: do not send both error and done for one command.

svn:r2882
Nick Mathewson 20 lat temu
rodzic
commit
076f120951
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/or/control.c

+ 2 - 1
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;
 }