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:
parent
12696a7dba
commit
0558c86c78
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user