[tor-commits] [tor/master] Fix double-free on test failure
nickm at torproject.org
nickm at torproject.org
Tue Dec 27 15:22:23 UTC 2016
commit 1a45398ffa713ca35e0b2b3b12fcd1143a8ce035
Author: Nick Mathewson <nickm at torproject.org>
Date: Tue Dec 27 10:20:13 2016 -0500
Fix double-free on test failure
Found by coverity scan; CID 1398167.
---
src/test/test_hs_descriptor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/test/test_hs_descriptor.c b/src/test/test_hs_descriptor.c
index 3603342..02a71aa 100644
--- a/src/test/test_hs_descriptor.c
+++ b/src/test/test_hs_descriptor.c
@@ -689,6 +689,7 @@ test_decode_intro_point(void *arg)
/* Try to decode a junk string. */
{
hs_descriptor_free(desc);
+ desc = NULL;
ret = ed25519_keypair_generate(&signing_kp, 0);
tt_int_op(ret, ==, 0);
desc = helper_build_hs_desc(0, &signing_kp.pubkey);
More information about the tor-commits
mailing list