mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-18 06:03:42 +03:00
nspawn: guard acl_free() with a NULL check
Inspired by #25957 there's one other place where we don't guard acl_free() calls with a NULL check. Fix that. (cherry picked from commit 34680637e838415204850f77c93ca6ca219abaf1) (cherry picked from commit 4dabf90526d4573144a51bdd87c1203b25265b33)
This commit is contained in:
parent
455193605d
commit
d8b4ac7a17
@ -181,7 +181,9 @@ static int patch_acls(int fd, const char *name, const struct stat *st, uid_t shi
|
||||
|
||||
if (S_ISDIR(st->st_mode)) {
|
||||
acl_free(acl);
|
||||
acl_free(shifted);
|
||||
|
||||
if (shifted)
|
||||
acl_free(shifted);
|
||||
|
||||
acl = shifted = NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user