1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-13 17:18:18 +03:00

sd-netlink: use secure_getenv()

Follow-up for 52afaee74b.

Fixes CID#1522326.
This commit is contained in:
Yu Watanabe 2023-10-04 09:19:27 +09:00 committed by Daan De Meyer
parent 12696a7dba
commit 0558c86c78

View File

@ -389,7 +389,7 @@ static usec_t timespan_to_timestamp(usec_t usec) {
default_timeout_set = true;
default_timeout = NETLINK_DEFAULT_TIMEOUT_USEC;
e = getenv("SYSTEMD_NETLINK_DEFAULT_TIMEOUT");
e = secure_getenv("SYSTEMD_NETLINK_DEFAULT_TIMEOUT");
if (e) {
r = parse_sec(e, &default_timeout);
if (r < 0)