diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-01-25 16:38:59 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-01-30 09:18:16 -0500 |
commit | c3c2b55decc80028728780422fe2766ec6517246 (patch) | |
tree | cc6f71e2e52d5f06395a2ac9ad8274b431558e78 /src/or/channel.c | |
parent | 82de4ea900c5d3513214b127421890595343bfaa (diff) | |
download | tor-c3c2b55decc80028728780422fe2766ec6517246.tar.gz tor-c3c2b55decc80028728780422fe2766ec6517246.zip |
test: Add unit tests for the DoS subsystem
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index fdd3f81e81..54e10666d2 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -3845,8 +3845,8 @@ channel_get_canonical_remote_descr(channel_t *chan) * supports this operation, and return 1. Return 0 if the underlying transport * doesn't let us do this. */ -int -channel_get_addr_if_possible(channel_t *chan, tor_addr_t *addr_out) +MOCK_IMPL(int, +channel_get_addr_if_possible,(channel_t *chan, tor_addr_t *addr_out)) { tor_assert(chan); tor_assert(addr_out); |