diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-08-29 15:05:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-08-29 15:05:05 -0400 |
commit | 94605f08fb89ea79409225362d2fa0f8a07435d7 (patch) | |
tree | 8905ef80ef6daec743eb1fd8f63c38e3ab98f3d5 /src/feature/dirauth | |
parent | 810152b20f6d773172e1f28ab72a1d4b2fda2d82 (diff) | |
parent | 6c0c08bbb506f47bf97bba82e4421592f71455d7 (diff) | |
download | tor-94605f08fb89ea79409225362d2fa0f8a07435d7.tar.gz tor-94605f08fb89ea79409225362d2fa0f8a07435d7.zip |
Merge branch 'ticket27246_035_01_squashed'
Diffstat (limited to 'src/feature/dirauth')
-rw-r--r-- | src/feature/dirauth/dirvote.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c index a97f3c47d8..14357c770e 100644 --- a/src/feature/dirauth/dirvote.c +++ b/src/feature/dirauth/dirvote.c @@ -3754,8 +3754,10 @@ dirvote_create_microdescriptor(const routerinfo_t *ri, int consensus_method) size_t keylen; smartlist_t *chunks = smartlist_new(); char *output = NULL; + crypto_pk_t *rsa_pubkey = router_get_rsa_onion_pkey(ri->onion_pkey, + ri->onion_pkey_len); - if (crypto_pk_write_public_key_to_string(ri->onion_pkey, &key, &keylen)<0) + if (crypto_pk_write_public_key_to_string(rsa_pubkey, &key, &keylen)<0) goto done; summary = policy_summarize(ri->exit_policy, AF_INET); if (ri->declared_family) @@ -3826,6 +3828,7 @@ dirvote_create_microdescriptor(const routerinfo_t *ri, int consensus_method) } done: + crypto_pk_free(rsa_pubkey); tor_free(output); tor_free(key); tor_free(summary); |