From 14169a3d703315de703a06bc61855aba8ef7ede8 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 27 Jun 2016 13:18:54 -0400 Subject: [PATCH] Remove an always-true condition: all ints are <= INT_MAX --- src/or/directory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/or/directory.c b/src/or/directory.c index 5886a73403..1fe4d6804d 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -3839,8 +3839,7 @@ download_status_schedule_get_delay(download_status_t *dls, schedule != NULL); /* If we're using random exponential backoff, we do need min/max delay */ tor_assert(dls->backoff != DL_SCHED_RANDOM_EXPONENTIAL || - (min_delay >= 0 && max_delay >= min_delay && - max_delay <= INT_MAX)); + (min_delay >= 0 && max_delay >= min_delay)); int delay = INT_MAX; uint8_t dls_schedule_position = (dls->increment_on