diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:49:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:49:43 -0400 |
commit | 1d43779960cb02d3bd176207044c97a80696dd55 (patch) | |
tree | 90c339aa310a5abc1e1e0c1403c0bb2a9a8dc1b3 | |
parent | fc5242889c921ac1322ca0b22a72f81df58d49b5 (diff) | |
parent | a3ec89a4f8a6222403697b7f7fce5d5138b79994 (diff) | |
download | tor-1d43779960cb02d3bd176207044c97a80696dd55.tar.gz tor-1d43779960cb02d3bd176207044c97a80696dd55.zip |
Merge branch 'maint-0.3.1' into release-0.3.1
-rw-r--r-- | src/test/test_channelpadding.c | 1 | ||||
-rw-r--r-- | src/test/test_hs_descriptor.c | 3 | ||||
-rw-r--r-- | src/test/test_shared_random.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test_channelpadding.c b/src/test/test_channelpadding.c index 0bc9699feb..d399738ce6 100644 --- a/src/test/test_channelpadding.c +++ b/src/test/test_channelpadding.c @@ -677,6 +677,7 @@ test_channelpadding_consensus(void *arg) memcpy(relay->identity_digest, ((channel_tls_t *)chan)->conn->identity_digest, DIGEST_LEN); smartlist_add(current_md_consensus->routerstatus_list, relay); + relay = NULL; /* Prevent double-free */ tried_to_write_cell = 0; decision = channelpadding_decide_to_pad_channel(chan); diff --git a/src/test/test_hs_descriptor.c b/src/test/test_hs_descriptor.c index 45850ada4e..a40616c61e 100644 --- a/src/test/test_hs_descriptor.c +++ b/src/test/test_hs_descriptor.c @@ -207,6 +207,7 @@ test_link_specifier(void *arg) tt_int_op(link_specifier_get_un_ipv4_port(ls), ==, spec.u.ap.port); link_specifier_free(ls); + ls = NULL; tor_free(b64); } @@ -236,6 +237,7 @@ test_link_specifier(void *arg) tt_int_op(link_specifier_get_un_ipv6_port(ls), ==, spec.u.ap.port); link_specifier_free(ls); + ls = NULL; tor_free(b64); } @@ -263,6 +265,7 @@ test_link_specifier(void *arg) tt_mem_op(spec.u.legacy_id, OP_EQ, id, DIGEST_LEN); link_specifier_free(ls); + ls = NULL; tor_free(b64); } diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index c8b0383582..8cb35be6a1 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -780,6 +780,7 @@ test_sr_setup_commits(void) /* Now during REVEAL phase save commit D by restoring its reveal. */ set_sr_phase(SR_PHASE_REVEAL); save_commit_to_state(place_holder); + place_holder = NULL; tt_str_op(commit_d->encoded_reveal, OP_EQ, "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"); /* Go back to an empty encoded reveal value. */ |