]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/networkd-radv.c
network: use timestamp_is_set() in one more place
[thirdparty/systemd.git] / src / network / networkd-radv.c
index 80c0fe43a84807d1c4a5bea7dd245b5261d48df3..fc36a001f8fbf1863bfd6c5a37c11be28dc0e486 100644 (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);