aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-03-19 22:27:01 +0000
committerRoger Dingledine <arma@torproject.org>2003-03-19 22:27:01 +0000
commitff14dcdef707f2d1cfed97f17164988c514afb99 (patch)
treea0394eb13ca9bafba8207d506895d2d11392ae7c
parent3a0cf3764187f6ff56fbde3783b475222eebc034 (diff)
downloadtor-ff14dcdef707f2d1cfed97f17164988c514afb99.tar.gz
tor-ff14dcdef707f2d1cfed97f17164988c514afb99.zip
fix arg bug; reduce confusion in package_raw_inbuf
svn:r207
-rw-r--r--src/or/connection.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index afd7120a5d..c9d2c2dc5a 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -399,7 +399,7 @@ int connection_decompress_to_buf(char *string, int len, connection_t *conn,
*
* This check should may be different.
*/
- if (connection_outbuf_too_full(conn->outbuf))
+ if (connection_outbuf_too_full(conn))
return 0;
n = decompress_buf_to_buf(
@@ -781,11 +781,8 @@ repeat_connection_package_raw_inbuf:
}
log(LOG_DEBUG,"connection_package_raw_inbuf(): receive_topicwindow at AP is %d",conn->p_receive_topicwindow);
}
- if (conn->inbuf_datalen) {
- log(LOG_DEBUG,"connection_package_raw_inbuf(): recursing.");
- goto repeat_connection_package_raw_inbuf;
- }
- return 0;
+ /* handle more if there's more, or return 0 if there isn't */
+ goto repeat_connection_package_raw_inbuf;
}
int connection_consider_sending_sendme(connection_t *conn, int edge_type) {