diff options
author | Anatole Denis <anatole@rezel.net> | 2016-11-28 17:43:08 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-11-29 22:46:56 +0100 |
commit | b8404c4ba78344abe9fda92c95e69adea9131ff4 (patch) | |
tree | b74c94350a143d573322690e22c9dbd4980f7a69 /tests/shell/testcases/sets/0003named_interval_missing_flag_0 | |
parent | 1419b0003fccca32bf61ed40265a5539e2465497 (diff) |
evaluate: Add set to cache only when well-formed
When creating a set (in set_evaluate), it is added to the table cache before
being checked for correctness. When the set is ill-formed, the function returns
without removing the (non-existent, since the function returned) set. Further
references to this set will not result in an error (since the set is in the
lookup table), but the malformed set will probably cause a segfault.
The symptom (the segfault) was fixed by checking for NULL when evaluating a
reference to the set (commit 5afa5a164ff1c066af1ec56d875b91562882bd50), this
should fix the root cause.
Signed-off-by: Anatole Denis <anatole@rezel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/sets/0003named_interval_missing_flag_0')
0 files changed, 0 insertions, 0 deletions