瀏覽代碼

ha ha, thought the bugs were done
don't stop writing the compressed directory just because you found a nul


svn:r2399

Roger Dingledine 21 年之前
父節點
當前提交
1c47de319e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/directory.c

+ 1 - 1
src/or/directory.c

@@ -622,7 +622,7 @@ directory_handle_command_get(connection_t *conn, char *headers,
              (int)dlen,
              deflated?"deflate":"identity");
     connection_write_to_buf(tmp, strlen(tmp), conn);
-    connection_write_to_buf(cp, strlen(cp), conn);
+    connection_write_to_buf(cp, dlen, conn);
     return 0;
   }