2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00

parser: fix chfa quivalence class handling

The chfa equivalence class shouldn't be a reference. Its needs to
actually exist and be part of the class during later method calls.
As a reference it leads to bad references when used later.

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen 2023-04-22 17:01:36 -07:00
parent be9c0937dc
commit f8117a384f

View File

@ -53,7 +53,7 @@ class CHFA {
DefaultBase default_base;
NextCheck next_check;
map<const State *, size_t> num;
map<transchar, transchar> &eq;
map<transchar, transchar> eq;
transchar max_eq;
ssize_t first_free;
unsigned int chfaflags;