network: use timestamp_is_set() in one more place

This commit is contained in:
Frantisek Sumsal
2023-10-25 11:28:12 +02:00
parent 25f7271c42
commit 73151fbe30
+1 -1
View File
@@ -1607,7 +1607,7 @@ int config_parse_router_home_agent_lifetime(
return 0;
}
if (usec == USEC_INFINITY || usec == 0 ||
if (!timestamp_is_set(usec) ||
usec > RADV_HOME_AGENT_MAX_LIFETIME_USEC) {
log_syntax(unit, LOG_WARNING, filename, line, 0,
"Invalid [%s] %s=, ignoring assignment: %s", section, lvalue, rvalue);