Browse Source

[NETFILTER]: Advance seq-file position in exp_next_seq()

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Patrick McHardy 20 years ago
parent
commit
a96aca88ac
1 changed files with 1 additions and 0 deletions
  1. 1 0
      net/ipv4/netfilter/ip_conntrack_standalone.c

+ 1 - 0
net/ipv4/netfilter/ip_conntrack_standalone.c

@@ -256,6 +256,7 @@ static void *exp_seq_next(struct seq_file *s, void *v, loff_t *pos)
 {
  	struct list_head *e = v;
 
+	++*pos;
 	e = e->next;
 
 	if (e == &ip_conntrack_expect_list)