From: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
To: netfilter-devel@vger.kernel.org
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Subject: [PATCH 3/4] netfilter: ipset: Validate the set family and not the set type family at swapping
Date: Mon, 16 Sep 2013 20:47:58 +0200 [thread overview]
Message-ID: <1379357279-13361-4-git-send-email-kadlec@blackhole.kfki.hu> (raw)
In-Reply-To: <1379357279-13361-1-git-send-email-kadlec@blackhole.kfki.hu>
This closes netfilter bugzilla #843, reported by Quentin Armitage.
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
---
net/netfilter/ipset/ip_set_core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c
index c8c303c..f2e30fb 100644
--- a/net/netfilter/ipset/ip_set_core.c
+++ b/net/netfilter/ipset/ip_set_core.c
@@ -1052,7 +1052,7 @@ ip_set_swap(struct sock *ctnl, struct sk_buff *skb,
* Not an artificial restriction anymore, as we must prevent
* possible loops created by swapping in setlist type of sets. */
if (!(from->type->features == to->type->features &&
- from->type->family == to->type->family))
+ from->family == to->family))
return -IPSET_ERR_TYPE_MISMATCH;
strncpy(from_name, from->name, IPSET_MAXNAMELEN);
--
1.7.0.4
next prev parent reply other threads:[~2013-09-16 18:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-16 18:47 [PATCH 0/4] ipset patches for nf Jozsef Kadlecsik
2013-09-16 18:47 ` [PATCH 1/4] netfilter: ipset: Skip really non-first fragments for IPv6 when getting port/protocol Jozsef Kadlecsik
2013-09-16 18:47 ` [PATCH 2/4] netfilter: ipset: Consistent userspace testing with nomatch flag Jozsef Kadlecsik
2013-09-16 18:47 ` Jozsef Kadlecsik [this message]
2013-09-16 18:47 ` [PATCH 4/4] netfilter: ipset: Fix serious failure in CIDR tracking Jozsef Kadlecsik
2013-09-17 11:00 ` [PATCH 0/4] ipset patches for nf Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1379357279-13361-4-git-send-email-kadlec@blackhole.kfki.hu \
--to=kadlec@blackhole.kfki.hu \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).