]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Time delta check only needs lt and gt comparisons
authorNick Porter <nick@portercomputing.co.uk>
Tue, 6 Dec 2022 16:36:15 +0000 (16:36 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 6 Dec 2022 16:36:15 +0000 (16:36 +0000)
src/lib/io/worker.c

index fd5bcf4e498ac087afe392b113da756b77108394..0562b821c042d7482b19c94c16b2e9f1f4603902 100644 (file)
@@ -1235,7 +1235,6 @@ nomem:
        } while (0)
 
 #define CHECK_CONFIG_TIME_DELTA(_x, _min, _max) do { \
-               if (fr_time_delta_ispos(worker->config._x)) worker->config._x = _min; \
                if (fr_time_delta_lt(worker->config._x, _min)) worker->config._x = _min; \
                if (fr_time_delta_gt(worker->config._x, _max)) worker->config._x = _max; \
        } while (0)