projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d503b30
)
netfilter: ip6t_LOG: fix a flaw in printing the MAC
author
Joerg Marx
<joerg.marx@secunet.com>
Thu, 17 Feb 2011 15:23:40 +0000
(16:23 +0100)
committer
Patrick McHardy
<kaber@trash.net>
Thu, 17 Feb 2011 15:23:40 +0000
(16:23 +0100)
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>
net/ipv6/netfilter/ip6t_LOG.c
patch
|
blob
|
history
diff --git
a/net/ipv6/netfilter/ip6t_LOG.c
b/net/ipv6/netfilter/ip6t_LOG.c
index 09c88891a753e725d8594edc68941b293d171100..de338037a7362cf55255b35f8653d21a219b6915 100644
(file)
--- 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, " ");