mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
load-fragment: terminate the specifier table (#34421)
Otherwise an invalid specifier iterates over uninitialized data. Fixes a bug introduced by 0b40688d1830abc6f59b1f1f67eccd757c23eb09 (v254). (cherry picked from commit 32b8065e876c6f89f55b1bb30eeb442d3921fb3a)
This commit is contained in:
parent
4296a567d4
commit
5dc97968d6
@ -2730,6 +2730,7 @@ int config_parse_environ(
|
||||
COMMON_CREDS_SPECIFIERS(ltype),
|
||||
{ 'h', specifier_user_home, NULL },
|
||||
{ 's', specifier_user_shell, NULL },
|
||||
{}
|
||||
};
|
||||
|
||||
for (const char *p = rvalue;; ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user