]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: use usec_add() at one more place
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Jul 2025 17:00:55 +0000 (02:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Jul 2025 18:44:49 +0000 (03:44 +0900)
Follow-up for 8458b7fb91ea5e5109b6f3c94f8a781a120c798b.
Fixes CID#1612580.

src/resolve/resolved-dns-browse-services.c

index 0401dfb754be646ac1f1afcf01751658f7df8d5b..b2ecc4c3d49cbdabbc9957ec8016ee553f39d170 100644 (file)
@@ -198,7 +198,7 @@ int dns_add_new_service(DnsServiceBrowser *sb, DnsResourceRecord *rr, int owner_
                 /* If next_time is still in the past, the service is being added
                  * after it has already expired. Just schedule a 100%
                  * maintenance query. */
-                next_time = usec + USEC_PER_SEC;
+                next_time = usec_add(usec, USEC_PER_SEC);
                 s->rr_ttl_state = DNS_RECORD_TTL_STATE_100_PERCENT;
         }