|
@@ -4262,10 +4262,11 @@ static int nf_tables_dump_obj(struct sk_buff *skb, struct netlink_callback *cb)
|
|
if (idx > s_idx)
|
|
if (idx > s_idx)
|
|
memset(&cb->args[1], 0,
|
|
memset(&cb->args[1], 0,
|
|
sizeof(cb->args) - sizeof(cb->args[0]));
|
|
sizeof(cb->args) - sizeof(cb->args[0]));
|
|
- if (filter->table[0] &&
|
|
|
|
|
|
+ if (filter && filter->table[0] &&
|
|
strcmp(filter->table, table->name))
|
|
strcmp(filter->table, table->name))
|
|
goto cont;
|
|
goto cont;
|
|
- if (filter->type != NFT_OBJECT_UNSPEC &&
|
|
|
|
|
|
+ if (filter &&
|
|
|
|
+ filter->type != NFT_OBJECT_UNSPEC &&
|
|
obj->type->type != filter->type)
|
|
obj->type->type != filter->type)
|
|
goto cont;
|
|
goto cont;
|
|
|
|
|