diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-07-06 14:15:23 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-07 11:12:27 -0400 |
commit | c4d17faf81d8cfe4cf943ba11be03413c58f4d44 (patch) | |
tree | 0313df314f65493bda621bc703b6ef9e6ef73316 /src/or/command.c | |
parent | 2432499705b0df5427604b5bf501bb22ccd73131 (diff) | |
download | tor-c4d17faf81d8cfe4cf943ba11be03413c58f4d44.tar.gz tor-c4d17faf81d8cfe4cf943ba11be03413c58f4d44.zip |
Explicit length checks in circuit_init_cpath_crypto().
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/command.c b/src/or/command.c index c667cbbe52..2c82984901 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -381,7 +381,8 @@ command_process_create_cell(cell_t *cell, channel_t *chan) created_cell.handshake_len = len; if (onionskin_answer(circ, &created_cell, - (const char *)keys, rend_circ_nonce)<0) { + (const char *)keys, sizeof(keys), + rend_circ_nonce)<0) { log_warn(LD_OR,"Failed to reply to CREATE_FAST cell. Closing."); circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_INTERNAL); return; |