Skip to content

Commit

Permalink
Merge branch 'maint-0.3.1' into release-0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Jun 29, 2018
2 parents fc52428 + a3ec89a commit 1d43779
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/test_channelpadding.c
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/test/test_hs_descriptor.c
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down
1 change: 1 addition & 0 deletions src/test/test_shared_random.c
Expand Up @@ -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. */
Expand Down

0 comments on commit 1d43779

Please sign in to comment.