From: Frantisek Sumsal Date: Mon, 25 Dec 2023 12:27:27 +0000 (+0100) Subject: network: use timestamp_is_set() in one more place X-Git-Tag: v256-rc1~1384^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50f605bfe60c5e8a43a2d7284d7b66de339f2291;p=thirdparty%2Fsystemd.git network: use timestamp_is_set() in one more place --- diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index c0189ae899a..30295e6bb6e 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -2869,7 +2869,7 @@ int config_parse_route_tcp_rto( return 0; } - if (IN_SET(usec, 0, USEC_INFINITY) || + if (!timestamp_is_set(usec) || DIV_ROUND_UP(usec, USEC_PER_MSEC) > UINT32_MAX) { log_syntax(unit, LOG_WARNING, filename, line, 0, "Route TCP retransmission timeout (RTO) must be in the range 0…%"PRIu32"ms, ignoring assignment: %s", UINT32_MAX, rvalue);