提交 0af320fb 编写于 作者: J Joerg Marx 提交者: Patrick McHardy

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: NJoerg Marx <joerg.marx@secunet.com>
Signed-off-by: NPatrick McHardy <kaber@trash.net>
上级 d503b30b
......@@ -410,7 +410,7 @@ static void dump_mac_header(struct sbuff *m,
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, " ");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册