]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
ha ha, thought the bugs were done
authorRoger Dingledine <arma@torproject.org>
Wed, 29 Sep 2004 05:48:25 +0000 (05:48 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 29 Sep 2004 05:48:25 +0000 (05:48 +0000)
don't stop writing the compressed directory just because you found a nul

svn:r2399

src/or/directory.c

index de252b025de650491c73e316168b30563eb24e42..3d0c2005e610dee868f10d4fbfef4f3a1211284d 100644 (file)
@@ -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;
   }