1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-24 14:50:17 +03:00

core: use usec_add() at one more place

Follow-up for 8af1b296cb2cec8ddbb2cb47f4194269eb6cee2b.
Fixes CID#1590317.
This commit is contained in:
Yu Watanabe 2025-01-19 11:55:54 +09:00 committed by Mike Yuan
parent 22d3a3dd20
commit ed8a737e08

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;