summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-10-15 12:52:48 -0400
committerNick Mathewson <nickm@torproject.org>2018-10-15 12:52:48 -0400
commit6b2ef2c5597a9e481939e04b556566c8b6283e46 (patch)
tree4ba2972297a5c4a0875599b1027a2f1828c365ba
parent86e0be421f14f386327f95df2cea0b3c59323463 (diff)
downloadtor-6b2ef2c5597a9e481939e04b556566c8b6283e46.tar.gz
tor-6b2ef2c5597a9e481939e04b556566c8b6283e46.zip
Fix another tor_assert(0) case
-rw-r--r--src/or/hs_intropoint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/hs_intropoint.c b/src/or/hs_intropoint.c
index 8c6453e6fd..9eaf572510 100644
--- a/src/or/hs_intropoint.c
+++ b/src/or/hs_intropoint.c
@@ -59,7 +59,7 @@ get_auth_key_from_cell(ed25519_public_key_t *auth_key_out,
default:
/* Getting here is really bad as it means we got a unknown cell type from
* this file where every call has an hardcoded value. */
- tor_assert(0); /* LCOV_EXCL_LINE */
+ tor_assert_unreached(); /* LCOV_EXCL_LINE */
}
tor_assert(key_array);
tor_assert(auth_key_len == sizeof(auth_key_out->pubkey));
@@ -610,4 +610,3 @@ hs_intropoint_clear(hs_intropoint_t *ip)
smartlist_free(ip->link_specifiers);
memset(ip, 0, sizeof(hs_intropoint_t));
}
-