aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_shared_random.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-03-12 11:34:52 +1000
committerteor <teor@torproject.org>2019-03-12 11:34:52 +1000
commitdfc3e552a3b7617add0bd576a5c34dca59f42649 (patch)
tree6099bdd0fe4e77da92e8a8a0b1fe70ff762fe1e3 /src/test/test_shared_random.c
parentc7854933e9d8a6634beb7079e7c8af3266a362a8 (diff)
downloadtor-dfc3e552a3b7617add0bd576a5c34dca59f42649.tar.gz
tor-dfc3e552a3b7617add0bd576a5c34dca59f42649.zip
test/sr: update sr_state_free() to sr_state_free_all()
The function name changed between 0.2.9 and 0.3.4.
Diffstat (limited to 'src/test/test_shared_random.c')
-rw-r--r--src/test/test_shared_random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c
index 45f0e1db7f..991d73128e 100644
--- a/src/test/test_shared_random.c
+++ b/src/test/test_shared_random.c
@@ -548,7 +548,7 @@ test_encoding(void *arg)
/** Setup some SRVs in our SR state. If <b>also_current</b> is set, then set
* both current and previous SRVs.
* Helper of test_vote() and test_sr_compute_srv().
- * You must call sr_state_free() to free the state at the end of each test
+ * You must call sr_state_free_all() to free the state at the end of each test
* function (on pass or fail). */
static void
test_sr_setup_srv(int also_current)
@@ -1299,7 +1299,7 @@ test_utils_auth(void *arg)
#endif
done:
- sr_state_free();
+ sr_state_free_all();
}
static void