sd-netlink: use secure_getenv()

Follow-up for 52afaee74b.

Fixes CID#1522326.
This commit is contained in:
Yu Watanabe
2023-10-04 07:48:30 +02:00
committed by Daan De Meyer
parent 12696a7dba
commit 0558c86c78
+1 -1
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)