1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-08 09:57:41 +03:00

exec-credential: strv_extend() handles NULL strings gracefully

This commit is contained in:
Lennart Poettering 2024-01-16 23:24:04 +01:00
parent 010cd1dc58
commit 41c41313b2

View File

@ -244,7 +244,6 @@ static char **credential_search_path(const ExecParameters *params, CredentialSea
}
if (IN_SET(path, CREDENTIAL_SEARCH_PATH_TRUSTED, CREDENTIAL_SEARCH_PATH_ALL)) {
if (params->received_credentials_directory)
if (strv_extend(&l, params->received_credentials_directory) < 0)
return NULL;