summaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-07-06 14:15:23 +0300
committerNick Mathewson <nickm@torproject.org>2017-07-07 11:12:27 -0400
commitc4d17faf81d8cfe4cf943ba11be03413c58f4d44 (patch)
tree0313df314f65493bda621bc703b6ef9e6ef73316 /src/or/cpuworker.c
parent2432499705b0df5427604b5bf501bb22ccd73131 (diff)
downloadtor-c4d17faf81d8cfe4cf943ba11be03413c58f4d44.tar.gz
tor-c4d17faf81d8cfe4cf943ba11be03413c58f4d44.zip
Explicit length checks in circuit_init_cpath_crypto().
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index 06d45f9960..f786d79505 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -372,7 +372,7 @@ cpuworker_onion_handshake_replyfn(void *work_)
if (onionskin_answer(circ,
&rpl.created_cell,
- (const char*)rpl.keys,
+ (const char*)rpl.keys, sizeof(rpl.keys),
rpl.rend_auth_material) < 0) {
log_warn(LD_OR,"onionskin_answer failed. Closing.");
circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_INTERNAL);