aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/microdesc.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2024-06-24 14:04:04 -0400
committerNick Mathewson <nickm@torproject.org>2024-06-24 17:48:55 -0400
commit07f0a2b964eedd1ced201f2d1d82ec0089fac371 (patch)
tree85525971ade35b8aaadca8c73f571aa889acc5bd /src/feature/nodelist/microdesc.c
parentf631145cbf2d0a8f1f170e206c38c77edfba8bad (diff)
downloadtor-07f0a2b964eedd1ced201f2d1d82ec0089fac371.tar.gz
tor-07f0a2b964eedd1ced201f2d1d82ec0089fac371.zip
Make onion-key body optional in microdescs
Also, stop storing onion keys in microdesc_t. (In prop350, for microdescs, we are making the body optional; the "onion-key" entry is still mandatory, so that we can tell where microdescs begin.)
Diffstat (limited to 'src/feature/nodelist/microdesc.c')
-rw-r--r--src/feature/nodelist/microdesc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/feature/nodelist/microdesc.c b/src/feature/nodelist/microdesc.c
index 9e5f0bb9a4..3fd0f23fb5 100644
--- a/src/feature/nodelist/microdesc.c
+++ b/src/feature/nodelist/microdesc.c
@@ -909,8 +909,6 @@ microdesc_free_(microdesc_t *md, const char *fname, int lineno)
//tor_assert(md->held_in_map == 0);
//tor_assert(md->held_by_nodes == 0);
- if (md->onion_pkey)
- tor_free(md->onion_pkey);
tor_free(md->onion_curve25519_pkey);
tor_free(md->ed25519_identity_pkey);
if (md->body && md->saved_location != SAVED_IN_CACHE)