diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-08-09 11:40:28 -0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 12:31:13 -0400 |
commit | ddcb59bb70457e203247931aaad3a3ff8b923f97 (patch) | |
tree | 803eac2d836936d44043b7793f4e6706208504cd /src/or/cpuworker.c | |
parent | 5279036148ca158f7c60f793f401604060b1c1ba (diff) | |
download | tor-ddcb59bb70457e203247931aaad3a3ff8b923f97.tar.gz tor-ddcb59bb70457e203247931aaad3a3ff8b923f97.zip |
Fix more remaining users of inbuf/outbuf to handle bufferevents instead.
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index a9c29d288d..e5b2c71025 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -144,9 +144,9 @@ connection_cpu_process_inbuf(connection_t *conn) return 0; if (conn->state == CPUWORKER_STATE_BUSY_ONION) { - if (buf_datalen(conn->inbuf) < LEN_ONION_RESPONSE) /* answer available? */ + if (connection_get_inbuf_len(conn) < LEN_ONION_RESPONSE) return 0; /* not yet */ - tor_assert(buf_datalen(conn->inbuf) == LEN_ONION_RESPONSE); + tor_assert(connection_get_inbuf_len(conn) == LEN_ONION_RESPONSE); connection_fetch_from_buf(&success,1,conn); connection_fetch_from_buf(buf,LEN_ONION_RESPONSE-1,conn); |