Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 991a6b73 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

netfilter: nfnetlink_acct: 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: default avatarGabriel Lazar <Gabriel.Lazar@com.utcluj.ro>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 5343a7f8
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -149,9 +149,12 @@ nfnl_acct_dump(struct sk_buff *skb, struct netlink_callback *cb)

	rcu_read_lock();
	list_for_each_entry_rcu(cur, &nfnl_acct_list, head) {
		if (last && cur != last)
		if (last) {
			if (cur != last)
				continue;

			last = NULL;
		}
		if (nfnl_acct_fill_info(skb, NETLINK_CB(cb->skb).portid,
				       cb->nlh->nlmsg_seq,
				       NFNL_MSG_TYPE(cb->nlh->nlmsg_type),