aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_descriptor.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-27 10:20:13 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-27 10:20:13 -0500
commit1a45398ffa713ca35e0b2b3b12fcd1143a8ce035 (patch)
tree37dbd74c377a2ce536a45ea7faa5bf18c2596d8f /src/test/test_hs_descriptor.c
parent1fbb66fa77939ffcfc57056ce212e7ecf98ad7af (diff)
downloadtor-1a45398ffa713ca35e0b2b3b12fcd1143a8ce035.tar.gz
tor-1a45398ffa713ca35e0b2b3b12fcd1143a8ce035.zip
Fix double-free on test failure
Found by coverity scan; CID 1398167.
Diffstat (limited to 'src/test/test_hs_descriptor.c')
-rw-r--r--src/test/test_hs_descriptor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_hs_descriptor.c b/src/test/test_hs_descriptor.c
index 360334201e..02a71aa473 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);