浏览代码

when the controller asks for a signal we don't recognize, don't
include the whitespace/newline/etc in our complaint.


svn:r5841

Roger Dingledine 20 年之前
父节点
当前提交
4a66f5a896
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/control.c

+ 1 - 1
src/or/control.c

@@ -1116,7 +1116,7 @@ handle_control_signal(connection_t *conn, uint32_t len,
       sig = SIGTERM;
       sig = SIGTERM;
     else {
     else {
       connection_printf_to_buf(conn, "552 Unrecognized signal code \"%s\"\r\n",
       connection_printf_to_buf(conn, "552 Unrecognized signal code \"%s\"\r\n",
-                               body);
+                               s);
       sig = -1;
       sig = -1;
     }
     }
     tor_free(s);
     tor_free(s);