소스 검색

when saveconf fails in controller v1, we were returning a malformed
error string.


svn:r6053

Roger Dingledine 19 년 전
부모
커밋
16f265fa0d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/or/control.c

+ 2 - 2
src/or/control.c

@@ -1076,8 +1076,8 @@ handle_control_saveconf(connection_t *conn, uint32_t len,
       send_control0_error(conn, ERR_INTERNAL,
                           "Unable to write configuration to disk.");
     else
-      connection_write_str_to_buf("551 Unable to write configuration to disk.",
-                                  conn);
+      connection_write_str_to_buf(
+        "551 Unable to write configuration to disk.\r\n", conn);
   } else {
     send_control_done(conn);
   }