Skip to content
Snippets Groups Projects
user avatar
Lars Ellenberg authored
Currently nla_policy_len always returns n * NLA_HDRLEN:
It loops, but does not advance it's iterator.
NLA_UNSPEC == 0 does not contain a .len in any policy.

Trivially fixed by adding p++.

Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
e3fa3aff
History