diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-06 15:37:09 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-22 08:55:53 -0400 |
commit | ceb49c1c5f2556c7fcd5b1ff34d8988344fa2ba7 (patch) | |
tree | 6a960f9deb6f84284dbbb97daa16de8742da69d1 /src/or/channelpadding.c | |
parent | d1e0e486e9eafa7ba44e3ed49ce1b92fec9c7201 (diff) | |
download | tor-ceb49c1c5f2556c7fcd5b1ff34d8988344fa2ba7.tar.gz tor-ceb49c1c5f2556c7fcd5b1ff34d8988344fa2ba7.zip |
Use channel_is_client() accessor in channelpadding.c.
Also, allow channel_is_client() to take a const channel.
Diffstat (limited to 'src/or/channelpadding.c')
-rw-r--r-- | src/or/channelpadding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/channelpadding.c b/src/or/channelpadding.c index bed2489837..2122602ffd 100644 --- a/src/or/channelpadding.c +++ b/src/or/channelpadding.c @@ -66,7 +66,7 @@ static int consensus_nf_pad_relays; * its a client, use that. Then finally verify in the consensus). */ #define CHANNEL_IS_CLIENT(chan, options) \ - (!public_server_mode((options)) || (chan)->is_client || \ + (!public_server_mode((options)) || channel_is_client(chan) || \ !connection_or_digest_is_known_relay((chan)->identity_digest)) /** |