diff options
author | George Kadianakis <desnacked@riseup.net> | 2020-01-27 17:26:47 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2020-01-28 01:08:41 +0200 |
commit | ba99287d13782048f58a88dc5d18780fad9f2034 (patch) | |
tree | 12cb01a06bca75a9563733333ec279f73dc4d53c /src/core/or/circuitbuild.c | |
parent | 635f58bad23282e27fbc5833dbaae978dab25934 (diff) | |
download | tor-ba99287d13782048f58a88dc5d18780fad9f2034.tar.gz tor-ba99287d13782048f58a88dc5d18780fad9f2034.zip |
Write unittest that covers cases of INTRODUCE1 handling.
Also fix some memleaks of other OB unittests.
Diffstat (limited to 'src/core/or/circuitbuild.c')
-rw-r--r-- | src/core/or/circuitbuild.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/or/circuitbuild.c b/src/core/or/circuitbuild.c index 03ed2c7d29..003b91af8d 100644 --- a/src/core/or/circuitbuild.c +++ b/src/core/or/circuitbuild.c @@ -2819,8 +2819,8 @@ extend_info_dup(extend_info_t *info) * If there is no chosen exit, or if we don't know the node_t for * the chosen exit, return NULL. */ -const node_t * -build_state_get_exit_node(cpath_build_state_t *state) +MOCK_IMPL(const node_t *, +build_state_get_exit_node,(cpath_build_state_t *state)) { if (!state || !state->chosen_exit) return NULL; |