summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-05-28 09:52:29 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-05-28 09:52:29 -0400
commit5922087ea89659b7be71867af93f8e912204f928 (patch)
treeac77019d7f2aefcab61a9fc07bd22ff207e87ecf
parent5d79b43717608b769ffda0a297bc0306bcceaa98 (diff)
parentbaee2feddd4504e0158795f729f151cdf9a2ca1b (diff)
downloadtor-5922087ea89659b7be71867af93f8e912204f928.tar.gz
tor-5922087ea89659b7be71867af93f8e912204f928.zip
Merge branch 'tor-github/pr/1901'
-rw-r--r--src/feature/hs/hs_service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c
index ab53d0082c..a42879a48f 100644
--- a/src/feature/hs/hs_service.c
+++ b/src/feature/hs/hs_service.c
@@ -3115,7 +3115,7 @@ log_cant_upload_desc(const hs_service_t *service,
* control that value in the code flow but will be apparent during
* development if a reason is added but LOG_DESC_UPLOAD_REASON_NUM_ is not
* updated. */
- if (BUG(reason > LOG_DESC_UPLOAD_REASON_MAX || reason < 0)) {
+ if (BUG(reason > LOG_DESC_UPLOAD_REASON_MAX)) {
return;
}