core: use usec_add() at one more place

Follow-up for 8af1b296cb.
Fixes CID#1590317.
This commit is contained in:
Yu Watanabe
2025-01-19 10:31:50 +01:00
committed by Mike Yuan
parent 22d3a3dd20
commit ed8a737e08
+1 -1
View File
@@ -1117,7 +1117,7 @@ static int ask_password_conv(
.credential = credential_name,
.tty_fd = -EBADF,
.hup_fd = -EBADF,
.until = now(CLOCK_MONOTONIC) + 15 * USEC_PER_SEC,
.until = usec_add(now(CLOCK_MONOTONIC), 15 * USEC_PER_SEC),
};
_cleanup_(strv_free_erasep) char **acquired = NULL;