diff options
author | Roger Dingledine <arma@torproject.org> | 2003-06-25 00:31:41 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-06-25 00:31:41 +0000 |
commit | dbf3435cde74a1300c991ce9e768fa0d235ad52a (patch) | |
tree | d84dad5c296e6e85bac8985eb183e09f8a1648e0 /src/or/connection.c | |
parent | ad917e77882bae5f1dbefae90d231bf0392fc884 (diff) | |
download | tor-dbf3435cde74a1300c991ce9e768fa0d235ad52a.tar.gz tor-dbf3435cde74a1300c991ce9e768fa0d235ad52a.zip |
simplify fetch_from_buf; cull idle dnsworkers.
svn:r354
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 7877e958eb..2d3a9cc434 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -568,9 +568,7 @@ repeat_connection_package_raw_inbuf: cell.length = amount_to_process; } - if(connection_fetch_from_buf(cell.payload+RELAY_HEADER_SIZE, - cell.length, conn) < 0) - return -1; + connection_fetch_from_buf(cell.payload+RELAY_HEADER_SIZE, cell.length, conn); circ = circuit_get_by_conn(conn); if(!circ) { @@ -695,9 +693,7 @@ int connection_process_cell_from_inbuf(connection_t *conn) { if(conn->inbuf_datalen < CELL_NETWORK_SIZE) /* entire response available? */ return 0; /* not yet */ - if(connection_fetch_from_buf(crypted,CELL_NETWORK_SIZE,conn) < 0) { - return -1; - } + connection_fetch_from_buf(crypted,CELL_NETWORK_SIZE,conn); #if 0 printf("Cell header crypttext: "); |