aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_descriptor.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-08-24 16:21:44 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-24 16:21:44 -0400
commitdfaa5c65f9fbfde9a12d8eb3ed848cab6ed1a5f9 (patch)
treef5382e747fdca41bba92f0fafdaf6bb55a1225ed /src/or/hs_descriptor.h
parenta007c02df0140d15697cf0ca61cea90bfc494789 (diff)
downloadtor-dfaa5c65f9fbfde9a12d8eb3ed848cab6ed1a5f9.tar.gz
tor-dfaa5c65f9fbfde9a12d8eb3ed848cab6ed1a5f9.zip
test: Fix memory leak in hs_descriptor/decode_bad_signature
Fixes #23319 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_descriptor.h')
-rw-r--r--src/or/hs_descriptor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/hs_descriptor.h b/src/or/hs_descriptor.h
index ce225d5217..3e82746c35 100644
--- a/src/or/hs_descriptor.h
+++ b/src/or/hs_descriptor.h
@@ -256,6 +256,8 @@ STATIC int desc_sig_is_valid(const char *b64_sig,
const char *encoded_desc, size_t encoded_len);
STATIC size_t decode_superencrypted(const char *message, size_t message_len,
uint8_t **encrypted_out);
+STATIC void desc_plaintext_data_free_contents(hs_desc_plaintext_data_t *desc);
+
#endif /* HS_DESCRIPTOR_PRIVATE */
#endif /* TOR_HS_DESCRIPTOR_H */