mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
ematch: Fix early ending of inverted containers.
The result of a negated container has to be inverted before checking for
early ending.
This fixes my previous attempt (17c9c82326
) to
make inverted containers work correctly.
Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e87474a6e6
commit
34a419d4e2
1 changed files with 3 additions and 2 deletions
|
@ -526,9 +526,10 @@ pop_stack:
|
|||
match_idx = stack[--stackp];
|
||||
cur_match = tcf_em_get_match(tree, match_idx);
|
||||
|
||||
if (tcf_em_is_inverted(cur_match))
|
||||
res = !res;
|
||||
|
||||
if (tcf_em_early_end(cur_match, res)) {
|
||||
if (tcf_em_is_inverted(cur_match))
|
||||
res = !res;
|
||||
goto pop_stack;
|
||||
} else {
|
||||
match_idx++;
|
||||
|
|
Loading…
Add table
Reference in a new issue