summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-13 20:36:34 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-13 20:36:34 -0400
commit3d10c8920178214520e5900833f5c790129917b0 (patch)
treec89720c0f45cc7104c23a913e1189b6955977c8e /src/or/relay.c
parent44674369c5db15f64c7b5fe53c3b7010abb783d5 (diff)
downloadtor-3d10c8920178214520e5900833f5c790129917b0.tar.gz
tor-3d10c8920178214520e5900833f5c790129917b0.zip
Fix a couple users of buf_datalen that slipped in. Found by Sebastian
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index c645b729ad..d8ba1748e7 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1512,7 +1512,7 @@ circuit_resume_edge_reading_helper(edge_connection_t *first_conn,
if (!layer_hint || conn->cpath_layer == layer_hint) {
connection_start_reading(TO_CONN(conn));
- if (buf_datalen(conn->_base.inbuf) > 0)
+ if (connection_get_inbuf_len(TO_CONN(conn)) > 0)
++n_streams;
}
}
@@ -1551,7 +1551,7 @@ circuit_resume_edge_reading_helper(edge_connection_t *first_conn,
}
/* If there's still data to read, we'll be coming back to this stream. */
- if (buf_datalen(conn->_base.inbuf))
+ if (connection_get_inbuf_len(TO_CONN(conn)))
++n_streams_left;
/* If the circuit won't accept any more data, return without looking