提交 881dbfe8 编写于 作者: P Patrick McHardy 提交者: David S. Miller

[NETFILTER]: nfnetlink_log: zero-terminate prefix

Userspace expects a zero-terminated string, so include the trailing
zero in the netlink message.
Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 dd63006b
...@@ -615,7 +615,7 @@ nfulnl_log_packet(unsigned int pf, ...@@ -615,7 +615,7 @@ nfulnl_log_packet(unsigned int pf,
plen = 0; plen = 0;
if (prefix) if (prefix)
plen = strlen(prefix); plen = strlen(prefix) + 1;
/* all macros expand to constant values at compile time */ /* all macros expand to constant values at compile time */
/* FIXME: do we want to make the size calculation conditional based on /* FIXME: do we want to make the size calculation conditional based on
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册