aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirparse/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-12-18 18:59:05 -0500
committerNick Mathewson <nickm@torproject.org>2018-12-18 18:59:05 -0500
commitbb091da1e7e229d6b938ae99d40078610b13ac76 (patch)
treef413f518f3a4118e323358e55bc51628370e00f2 /src/feature/dirparse/routerparse.c
parent372df7a630afa4ffb0782287366b629916e0f728 (diff)
parent976c62e62a38c9f30c32ca742a43d59633a0e6ab (diff)
downloadtor-bb091da1e7e229d6b938ae99d40078610b13ac76.tar.gz
tor-bb091da1e7e229d6b938ae99d40078610b13ac76.zip
Merge branch 'ticket28839_v2_squashed'
Diffstat (limited to 'src/feature/dirparse/routerparse.c')
-rw-r--r--src/feature/dirparse/routerparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/dirparse/routerparse.c b/src/feature/dirparse/routerparse.c
index 2249ab7cbc..358f6e44e8 100644
--- a/src/feature/dirparse/routerparse.c
+++ b/src/feature/dirparse/routerparse.c
@@ -588,8 +588,8 @@ router_parse_entry_from_string(const char *s, const char *end,
"Relay's onion key had invalid exponent.");
goto err;
}
- router_set_rsa_onion_pkey(tok->key, &router->onion_pkey,
- &router->onion_pkey_len);
+ router->onion_pkey = tor_memdup(tok->object_body, tok->object_size);
+ router->onion_pkey_len = tok->object_size;
crypto_pk_free(tok->key);
if ((tok = find_opt_by_keyword(tokens, K_ONION_KEY_NTOR))) {