summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-04-17 17:25:32 +0000
committerNick Mathewson <nickm@torproject.org>2003-04-17 17:25:32 +0000
commit5c514620fcbf6d5abb4d7c66a0aac6a3b195b3f0 (patch)
treefcc7c0aeeb4c9dc514740459578ec1ddd30c337c /src/or/connection_edge.c
parent32a3e704b48ac277456fd89c6bd8cd96ccb3d0c8 (diff)
downloadtor-5c514620fcbf6d5abb4d7c66a0aac6a3b195b3f0.tar.gz
tor-5c514620fcbf6d5abb4d7c66a0aac6a3b195b3f0.zip
Adjust straggling users of payload field
svn:r250
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index bc3828439c..ab43798dee 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -153,7 +153,7 @@ int connection_edge_process_data_cell(cell_t *cell, circuit_t *circ, int edge_ty
}
#ifdef USE_ZLIB
- if(connection_decompress_to_buf(cell->payload,
+ if(connection_decompress_to_buf(cell->payload + TOPIC_HEADER_SIZE,
cell->length - TOPIC_HEADER_SIZE,
conn, Z_SYNC_FLUSH) < 0) {
log(LOG_INFO,"connection_edge_process_data_cell(): write to buf failed. Marking for close.");
@@ -161,7 +161,7 @@ int connection_edge_process_data_cell(cell_t *cell, circuit_t *circ, int edge_ty
return 0;
}
#else
- if(connection_write_to_buf(cell->payload,
+ if(connection_write_to_buf(cell->payload + TOPIC_HEADER_SIZE,
cell->length - TOPIC_HEADER_SIZE, conn) < 0) {
conn->marked_for_close = 1;
return 0;