Message ID | 20241031100117.152995-3-pablo@netfilter.org (mailing list archive) |
---|---|
State | Accepted |
Commit | f48d258f0ac540f00fa617dac496c4c18b5dc2fa |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Netfilter fixes for net | expand |
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index da5d929c7c85..709840612f0d 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -1269,7 +1269,7 @@ struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af, /* and once again: */ list_for_each_entry(t, &xt_net->tables[af], list) - if (strcmp(t->name, name) == 0) + if (strcmp(t->name, name) == 0 && owner == t->me) return t; module_put(owner);