net: fix netlink address dumping in IPv4/IPv6
authorPatrick McHardy <kaber@trash.net>
Sat, 27 Mar 2010 03:27:49 +0000 (20:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Mar 2010 03:27:49 +0000 (20:27 -0700)
When a dump is interrupted at the last device in a hash chain and
then continued, "idx" won't get incremented past s_idx, so s_ip_idx
is not reset when moving on to the next device. This means of all
following devices only the last n - s_ip_idx addresses are dumped.

Tested-by: Pawel Staszewski <pstaszewski@itcare.pl>
Signed-off-by: Patrick McHardy <kaber@trash.net>

No differences found