diff options
author | Roger Dingledine <arma@torproject.org> | 2003-10-04 02:38:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-10-04 02:38:18 +0000 |
commit | f563bbd2f988cd1f6ca292f89a47a86f98fe0e8d (patch) | |
tree | 08b3ea32a4ce45bc729225bd1beeed555fd0dd52 /src/or/onion.c | |
parent | a6bab569abd3ac8f16a3603813fa03e4585a3bd3 (diff) | |
download | tor-f563bbd2f988cd1f6ca292f89a47a86f98fe0e8d.tar tor-f563bbd2f988cd1f6ca292f89a47a86f98fe0e8d.tar.gz |
refactor so connection_write_to_buf() never fails
svn:r537
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 42b978fb1..84d70df40 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -151,9 +151,7 @@ int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *key return -1; } - if(connection_write_cell_to_buf(&cell, circ->p_conn) < 0) { - return -1; - } + connection_write_cell_to_buf(&cell, circ->p_conn); log_fn(LOG_DEBUG,"Finished sending 'created' cell."); return 0; |