summaryrefslogtreecommitdiff
path: root/src/or/channel.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-06 14:55:58 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-22 08:55:53 -0400
commitd1e0e486e9eafa7ba44e3ed49ce1b92fec9c7201 (patch)
tree3e3573a8bc392d41c78754f13753c46a2863f1f0 /src/or/channel.c
parent66aff2d8f35217cc802bd46eeeaf49326d7de4b0 (diff)
downloadtor-d1e0e486e9eafa7ba44e3ed49ce1b92fec9c7201.tar.gz
tor-d1e0e486e9eafa7ba44e3ed49ce1b92fec9c7201.zip
Stop clearing the is_client flag on channel directly
Diffstat (limited to 'src/or/channel.c')
-rw-r--r--src/or/channel.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index 9f8a03683f..ea113903af 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -4097,6 +4097,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