aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/channel.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-18 15:06:36 -0400
committerNick Mathewson <nickm@torproject.org>2018-10-14 15:25:16 -0400
commit965549aa07d94a9f9e510cdb7a215bf9a3ed7bb8 (patch)
tree4a8a4fa21a4fba053eade245a341c39ed9c29a1d /src/core/or/channel.c
parent7ace8d5a61f75fb77e3619deed417edd5610a4f1 (diff)
downloadtor-965549aa07d94a9f9e510cdb7a215bf9a3ed7bb8.tar.gz
tor-965549aa07d94a9f9e510cdb7a215bf9a3ed7bb8.zip
Use assertions so GCC LTO doesn't worry about TLS channel conversion
Part of #27772
Diffstat (limited to 'src/core/or/channel.c')
-rw-r--r--src/core/or/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/or/channel.c b/src/core/or/channel.c
index 0c204ddfb6..79c52235dc 100644
--- a/src/core/or/channel.c
+++ b/src/core/or/channel.c
@@ -3423,6 +3423,8 @@ channel_rsa_id_group_set_badness(struct channel_list_s *lst, int force)
/* it would be more efficient to do a slice, but this case is rare */
smartlist_t *or_conns = smartlist_new();
SMARTLIST_FOREACH_BEGIN(channels, channel_t *, channel) {
+ tor_assert(channel); // Suppresses some compiler warnings.
+
if (!common_ed25519_identity)
common_ed25519_identity = &channel->ed25519_identity;