diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-09-15 01:05:52 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-09-15 01:08:47 +0200 |
commit | b85769f9397c72ab62387ccc5b7a66d0c3ff5f21 (patch) | |
tree | b2117107cd4fafa9fe90b2bbbf35ffc7e506a019 /include | |
parent | 05615f110b6398484aeb2c7ad748f7aec5fcb136 (diff) |
src: revert hashtable for expression handlers
Partially revert 913979f882d1 ("src: add expression handler hashtable")
which is causing a crash with two instances of the nftables handler.
$ sudo python
[sudo] password for echerkashin:
Python 3.9.7 (default, Sep 3 2021, 06:18:44)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from nftables import Nftables
>>> n1=Nftables()
>>> n2=Nftables()
>>> <Ctrl-D>
double free or corruption (top)
Aborted
Reported-by: Eugene Crosser <crosser@average.org>
Suggested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/netlink.h b/include/netlink.h index 0c8655ca..2467ff82 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -215,9 +215,6 @@ int netlink_events_trace_cb(const struct nlmsghdr *nlh, int type, enum nft_data_types dtype_map_to_kernel(const struct datatype *dtype); -void expr_handler_init(void); -void expr_handler_exit(void); - void netlink_linearize_init(struct netlink_linearize_ctx *lctx, struct nftnl_rule *nlr); void netlink_linearize_fini(struct netlink_linearize_ctx *lctx); |