mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
parser: Fix invalid reference to name in attachment warning
The name var is being improperly used in a warning. Not only is it being used after it is freed, it also never had the correct value as the "name" variable contained the value being used as the base attachment. Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: time out
This commit is contained in:
parent
be0d2fa947
commit
74bc4275a5
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ static int process_profile_name_xmatch(Profile *prof)
|
||||||
}
|
}
|
||||||
if (prof->xattrs.list) {
|
if (prof->xattrs.list) {
|
||||||
if (!(features_supports_domain_xattr && kernel_supports_oob)) {
|
if (!(features_supports_domain_xattr && kernel_supports_oob)) {
|
||||||
warn_once_xattr(name);
|
warn_once_xattr(prof->name);
|
||||||
free_cond_entry_list(prof->xattrs);
|
free_cond_entry_list(prof->xattrs);
|
||||||
goto build;
|
goto build;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue