summaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-03-13 09:41:49 -0400
committerNick Mathewson <nickm@torproject.org>2015-03-13 09:41:49 -0400
commit3a68f2f54ed67176a8ed0b7aa276ef58a54b26db (patch)
tree2384f4434651629918e6c2de50d2308836bca7cc /src/or/rendservice.c
parent833b6d30bec568660e3a9cdeacd1e8c2837f1a6a (diff)
downloadtor-3a68f2f54ed67176a8ed0b7aa276ef58a54b26db.tar.gz
tor-3a68f2f54ed67176a8ed0b7aa276ef58a54b26db.zip
const-ify the new failure vars, and one old one
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 77eaea0ed9..eb2748c7d8 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -3320,7 +3320,7 @@ 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();
- int fail = crypto_pk_generate_key(intro->intro_key);
+ const int fail = crypto_pk_generate_key(intro->intro_key);
tor_assert(!fail);
intro->time_published = -1;
intro->time_to_expire = -1;