summaryrefslogtreecommitdiff
path: root/lib/route/cls/ematch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/route/cls/ematch.c')
-rw-r--r--lib/route/cls/ematch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/route/cls/ematch.c b/lib/route/cls/ematch.c
index e2719c2..8c9c3dd 100644
--- a/lib/route/cls/ematch.c
+++ b/lib/route/cls/ematch.c
@@ -20,7 +20,6 @@
#include <netlink-tc.h>
#include <netlink/netlink.h>
#include <netlink/route/classifier.h>
-#include <netlink/route/classifier-modules.h>
#include <netlink/route/cls/ematch.h>
#include <netlink/route/cls/ematch/cmp.h>
@@ -511,6 +510,9 @@ static void dump_ematch_sequence(struct nl_list_head *head,
void rtnl_ematch_tree_dump(struct rtnl_ematch_tree *tree,
struct nl_dump_params *p)
{
+ if (!tree)
+ BUG();
+
dump_ematch_sequence(&tree->et_list, p);
nl_dump(p, "\n");
}