summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-06-01 15:36:02 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-05 12:36:37 +0200
commit37bc4f8dfa72fb43b84381abca39cfdbbc8ff2df (patch)
tree812e1f68d84a43dfc76eaae8488123c7fd5c8020 /net
parent991a6b735ff47710769545b11e481bb140b2e6f7 (diff)
downloadop-kernel-dev-37bc4f8dfa72fb43b84381abca39cfdbbc8ff2df.zip
op-kernel-dev-37bc4f8dfa72fb43b84381abca39cfdbbc8ff2df.tar.gz
netfilter: nfnetlink_cttimeout: fix incomplete dumping of objects
Fix broken incomplete object dumping if the list of objects does not fit into one single netlink message. Reported-by: Gabriel Lazar <Gabriel.Lazar@com.utcluj.ro> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nfnetlink_cttimeout.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/netfilter/nfnetlink_cttimeout.c b/net/netfilter/nfnetlink_cttimeout.c
index 701c88a..65074df 100644
--- a/net/netfilter/nfnetlink_cttimeout.c
+++ b/net/netfilter/nfnetlink_cttimeout.c
@@ -220,9 +220,12 @@ ctnl_timeout_dump(struct sk_buff *skb, struct netlink_callback *cb)
rcu_read_lock();
list_for_each_entry_rcu(cur, &cttimeout_list, head) {
- if (last && cur != last)
- continue;
+ if (last) {
+ if (cur != last)
+ continue;
+ last = NULL;
+ }
if (ctnl_timeout_fill_info(skb, NETLINK_CB(cb->skb).portid,
cb->nlh->nlmsg_seq,
NFNL_MSG_TYPE(cb->nlh->nlmsg_type),
OpenPOWER on IntegriCloud