From 70d08f764d9912e66a2c6c0f3e4241f563d53ebd Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Thu, 6 Jul 2017 16:23:30 +0300 Subject: Explicit length checks in create_rend_cpath(). Had to also edit hs_ntor_circuit_key_expansion() to make it happen. --- src/test/test_hs_service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/test/test_hs_service.c') diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c index b5aaa0c75e..57937475c0 100644 --- a/src/test/test_hs_service.c +++ b/src/test/test_hs_service.c @@ -290,7 +290,9 @@ test_e2e_rend_circuit_setup(void *arg) /* Setup the circuit: do the ntor key exchange */ { uint8_t ntor_key_seed[DIGEST256_LEN] = {2}; - retval = hs_circuit_setup_e2e_rend_circ(or_circ, ntor_key_seed, 1); + retval = hs_circuit_setup_e2e_rend_circ(or_circ, + ntor_key_seed, sizeof(ntor_key_seed), + 1); tt_int_op(retval, OP_EQ, 0); } -- cgit v1.2.3-54-g00ecf