From badc81de5bc60c5f53b3c1dd3cf9b1a819ff89c4 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Thu, 12 Mar 2015 18:59:46 +0100 Subject: Don't init hs intro key as side effect of an assert --- src/or/rendservice.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 036869650c..77eaea0ed9 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -3320,7 +3320,8 @@ rend_services_introduce(void) intro = tor_malloc_zero(sizeof(rend_intro_point_t)); intro->extend_info = extend_info_from_node(node, 0); intro->intro_key = crypto_pk_new(); - tor_assert(!crypto_pk_generate_key(intro->intro_key)); + int fail = crypto_pk_generate_key(intro->intro_key); + tor_assert(!fail); intro->time_published = -1; intro->time_to_expire = -1; intro->time_expiring = -1; -- cgit v1.2.3-54-g00ecf