diff options
author | Florian Westphal <fw@strlen.de> | 2012-06-17 09:56:46 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-25 12:03:21 +0200 |
commit | ef5b6e127761667f78d99b7510a3876077fe9abe (patch) | |
tree | f47a8122ac8fbb8bf7d76b2a4720a811e25dd3e2 /kernel/trace/trace_stack.c | |
parent | 8b8e4bc0391f8abbcdb9e1c54415bcc0f4f5a2a0 (diff) |
netfilter: ipset: fix interface comparision in hash-netiface sets
ifname_compare() assumes that skb->dev is zero-padded,
e.g 'eth1\0\0\0\0\0...'. This isn't always the case. e1000 driver does
strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1);
in e1000_probe(), so once device is registered dev->name memory contains
'eth1\0:0:3\0\0\0' (or something like that), which makes eth1 compare
fail.
Use plain strcmp() instead.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'kernel/trace/trace_stack.c')
0 files changed, 0 insertions, 0 deletions