summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-10-25 19:25:53 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-10-25 20:22:52 +0300
commit8c8d3b90f767076508944f4eb355180e14b6189e (patch)
tree9c031adf7333fc73bd2ffcf002a42965e646bf9e /src/or/entrynodes.c
parentc7a1a987d6dfcb65a5fd639cc3d37b76809c37d5 (diff)
downloadtor-8c8d3b90f767076508944f4eb355180e14b6189e.tar.gz
tor-8c8d3b90f767076508944f4eb355180e14b6189e.zip
Add a unittest that reveals the offending case of #23862.
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r--src/or/entrynodes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index 9fbf426433..76a8f591b9 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -2126,9 +2126,9 @@ circuit_guard_state_free(circuit_guard_state_t *state)
/** Allocate and return a new circuit_guard_state_t to track the result
* of using <b>guard</b> for a given operation. */
-static circuit_guard_state_t *
-circuit_guard_state_new(entry_guard_t *guard, unsigned state,
- entry_guard_restriction_t *rst)
+MOCK_IMPL(STATIC circuit_guard_state_t *,
+circuit_guard_state_new,(entry_guard_t *guard, unsigned state,
+ entry_guard_restriction_t *rst))
{
circuit_guard_state_t *result;