From: Joerg Marx Date: Thu, 17 Feb 2011 15:23:40 +0000 (+0100) Subject: netfilter: ip6t_LOG: fix a flaw in printing the MAC X-Git-Tag: v2.6.38-rc8~29^2~8^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0af320fb4627033e49cbc6e8138e7aa75ab8352a;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Patrick McHardy --- diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c index 09c8889..de33803 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, " ");