diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-27 13:18:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-27 13:18:54 -0400 |
commit | 14169a3d703315de703a06bc61855aba8ef7ede8 (patch) | |
tree | 21bee8f51e0891aa1adec86287c1ac789f68b039 /src/or/directory.c | |
parent | 2197bfcc6a858af8f8ff41dba8825d676d18d37c (diff) | |
download | tor-14169a3d703315de703a06bc61855aba8ef7ede8.tar.gz tor-14169a3d703315de703a06bc61855aba8ef7ede8.zip |
Remove an always-true condition: all ints are <= INT_MAX
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 3 |
1 files changed, 1 insertions, 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 |