]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: use timestamp_is_set() in one more place
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 25 Dec 2023 12:27:27 +0000 (13:27 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 25 Dec 2023 17:26:59 +0000 (18:26 +0100)
src/network/networkd-route.c

index c0189ae899a85abab2bd4bec9c8c68fcfa36d458..30295e6bb6e08f3b89f43892692e6c920c8ab3ec 100644 (file)
@@ -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);