From b85769f9397c72ab62387ccc5b7a66d0c3ff5f21 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 15 Sep 2021 01:05:52 +0200 Subject: 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() >>> double free or corruption (top) Aborted Reported-by: Eugene Crosser Suggested-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- include/netlink.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include') 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); -- cgit v1.2.3