aboutsummaryrefslogtreecommitdiff
path: root/src/or/channeltls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-03 16:06:53 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 16:06:53 -0400
commit0533d1421359c6cc106825f48eef781309071f4f (patch)
treec80ff44bf41a80837c23974e1d2b2dfb1f0120b3 /src/or/channeltls.c
parent272572c3a2203a8a62f4c8c081fea55183f1f426 (diff)
downloadtor-0533d1421359c6cc106825f48eef781309071f4f.tar.gz
tor-0533d1421359c6cc106825f48eef781309071f4f.zip
Replace some assert(1)s with nonfatal_unreached_once().
These were probably supposed to be assert(0).
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r--src/or/channeltls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c
index 5117672a6a..9fb309d0fd 100644
--- a/src/or/channeltls.c
+++ b/src/or/channeltls.c
@@ -601,7 +601,7 @@ channel_tls_get_remote_descr_method(channel_t *chan, int flags)
break;
default:
/* Something's broken in channel.c */
- tor_assert(1);
+ tor_assert_nonfatal_unreached_once();
}
} else {
strlcpy(buf, "(No connection)", sizeof(buf));
@@ -670,7 +670,7 @@ channel_tls_is_canonical_method(channel_t *chan, int req)
break;
default:
/* This shouldn't happen; channel.c is broken if it does */
- tor_assert(1);
+ tor_assert_nonfatal_unreached_once();
}
}
/* else return 0 for tlschan->conn == NULL */