Fix more remaining users of inbuf/outbuf to handle bufferevents instead.

This commit is contained in:
Nick Mathewson
2009-08-09 11:40:28 -07:00
parent 5279036148
commit ddcb59bb70
8 changed files with 69 additions and 8 deletions
+2 -2
View File
@@ -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);