summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 97a7e72763..4b6df81b7d 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1112,7 +1112,7 @@ tor_digest256_is_zero(const char *digest)
if (!next && *endptr) \
goto err; \
/* Illogical (max, min) inputs? */ \
- if (max < min) \
+ if (BUG(max < min)) \
goto err; \
/* Is r within limits? */ \
if (r < min || r > max) \