aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index de252b025d..3d0c2005e6 100644
--- a/src/or/directory.c
+++ b/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;
}