diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-22 08:58:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-22 08:58:17 -0400 |
commit | 91467e04b18afce9af2189116ad0e160fef53e49 (patch) | |
tree | 4ddc095a95cecec1b431899841b73e2b5a388bf7 /src/or/channel.c | |
parent | 512c57cff97c0533bbb56e6c41a1e3dca5fd9064 (diff) | |
parent | 95a7e7e9254bc70db9e1d967d0db3deb658a2be3 (diff) | |
download | tor-91467e04b18afce9af2189116ad0e160fef53e49.tar.gz tor-91467e04b18afce9af2189116ad0e160fef53e49.zip |
Merge branch 'bug22805_v2_squashed'
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index faece55981..0b5a7fde90 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -4090,7 +4090,7 @@ channel_mark_bad_for_new_circs(channel_t *chan) */ int -channel_is_client(channel_t *chan) +channel_is_client(const channel_t *chan) { tor_assert(chan); @@ -4112,6 +4112,20 @@ channel_mark_client(channel_t *chan) } /** + * Clear the client flag + * + * Mark a channel as being _not_ from a client + */ + +void +channel_clear_client(channel_t *chan) +{ + tor_assert(chan); + + chan->is_client = 0; +} + +/** * Get the canonical flag for a channel * * This returns the is_canonical for a channel; this flag is determined by |