summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Marx <joerg.marx@secunet.com>2011-02-17 16:23:40 +0100
committerPatrick McHardy <kaber@trash.net>2011-02-17 16:23:40 +0100
commit0af320fb4627033e49cbc6e8138e7aa75ab8352a (patch)
tree724a020c8d6f96b37ee9674cd59b94c08f50a176
parentd503b30bd648b3cb4e5f50b65d27e389960cc6d9 (diff)
downloadlinux-3.10-0af320fb4627033e49cbc6e8138e7aa75ab8352a.tar.gz
linux-3.10-0af320fb4627033e49cbc6e8138e7aa75ab8352a.tar.bz2
linux-3.10-0af320fb4627033e49cbc6e8138e7aa75ab8352a.zip
netfilter: ip6t_LOG: fix a flaw in printing the MAC
The flaw was in skipping the second byte in MAC header due to increasing the pointer AND indexed access starting at '1'. Signed-off-by: Joerg Marx <joerg.marx@secunet.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r--net/ipv6/netfilter/ip6t_LOG.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c
index 09c88891a75..de338037a73 100644
--- a/net/ipv6/netfilter/ip6t_LOG.c
+++ b/net/ipv6/netfilter/ip6t_LOG.c
@@ -410,7 +410,7 @@ fallback:
if (p != NULL) {
sb_add(m, "%02x", *p++);
for (i = 1; i < len; i++)
- sb_add(m, ":%02x", p[i]);
+ sb_add(m, ":%02x", *p++);
}
sb_add(m, " ");