mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
network: use timestamp_is_set() in one more place
This commit is contained in:
parent
78bc04cf12
commit
50f605bfe6
|
@ -2869,7 +2869,7 @@ int config_parse_route_tcp_rto(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IN_SET(usec, 0, USEC_INFINITY) ||
|
if (!timestamp_is_set(usec) ||
|
||||||
DIV_ROUND_UP(usec, USEC_PER_MSEC) > UINT32_MAX) {
|
DIV_ROUND_UP(usec, USEC_PER_MSEC) > UINT32_MAX) {
|
||||||
log_syntax(unit, LOG_WARNING, filename, line, 0,
|
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);
|
"Route TCP retransmission timeout (RTO) must be in the range 0…%"PRIu32"ms, ignoring assignment: %s", UINT32_MAX, rvalue);
|
||||||
|
|
Loading…
Reference in a new issue