Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0af320fb authored by Joerg Marx's avatar Joerg Marx Committed by Patrick McHardy
Browse files

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: default avatarJoerg Marx <joerg.marx@secunet.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent d503b30b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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, " ");