diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:06:16 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:06:16 -0400 |
commit | 7a47379f252b4d277df7c289f8a9d3160b50eee0 (patch) | |
tree | 63d98a1f18fdb3cc1807d95ecea0277df59d4be3 /src/test/hs_test_helpers.c | |
parent | 1a5be3c5e76a9ce07c64499b6cb8a6bad9323113 (diff) | |
parent | f6b30a97a96837e012b296a43cc99018d96bcf13 (diff) | |
download | tor-7a47379f252b4d277df7c289f8a9d3160b50eee0.tar.gz tor-7a47379f252b4d277df7c289f8a9d3160b50eee0.zip |
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/test/hs_test_helpers.c')
-rw-r--r-- | src/test/hs_test_helpers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/hs_test_helpers.c b/src/test/hs_test_helpers.c index d238bf8e59..cb7b1fe1b7 100644 --- a/src/test/hs_test_helpers.c +++ b/src/test/hs_test_helpers.c @@ -86,6 +86,9 @@ hs_helper_build_intro_point(const ed25519_keypair_t *signing_kp, time_t now, intro_point = ip; done: + if (intro_point == NULL) + tor_free(ip); + return intro_point; } @@ -143,6 +146,9 @@ hs_helper_build_hs_desc_impl(unsigned int no_ip, descp = desc; done: + if (descp == NULL) + tor_free(desc); + return descp; } |