aboutsummaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-10-15 10:48:35 -0400
committerNick Mathewson <nickm@torproject.org>2018-10-15 10:48:35 -0400
commit23ce9a60fbd93481f855c30e3e550acefc6052a4 (patch)
treea72d1f846e086d052fd455ffa1c135aad578d03c /src/feature
parent4983322cc71d56d3b9225704b85a7c4a933a40a1 (diff)
parent3462f8ed6430bdb1528a7b63aaf2281489eb04d1 (diff)
downloadtor-23ce9a60fbd93481f855c30e3e550acefc6052a4.tar.gz
tor-23ce9a60fbd93481f855c30e3e550acefc6052a4.zip
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/hs/hs_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/feature/hs/hs_common.c b/src/feature/hs/hs_common.c
index 4bad4ae6e6..8dbd9485ea 100644
--- a/src/feature/hs/hs_common.c
+++ b/src/feature/hs/hs_common.c
@@ -530,7 +530,7 @@ rend_data_get_address(const rend_data_t *rend_data)
return TO_REND_DATA_V2(rend_data)->onion_address;
default:
/* We should always have a supported version. */
- tor_assert(0);
+ tor_assert_unreached();
}
}
@@ -553,7 +553,7 @@ rend_data_get_desc_id(const rend_data_t *rend_data, uint8_t replica,
return TO_REND_DATA_V2(rend_data)->descriptor_id[replica];
default:
/* We should always have a supported version. */
- tor_assert(0);
+ tor_assert_unreached();
}
}
@@ -576,7 +576,7 @@ rend_data_get_pk_digest(const rend_data_t *rend_data, size_t *len_out)
}
default:
/* We should always have a supported version. */
- tor_assert(0);
+ tor_assert_unreached();
}
}