summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-03-07 05:24:35 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2007-03-08 01:08:02 +0100
commit881dbfe8accc9434dd0d7d052505e3dca6ad9b3c (patch)
tree2e742e2ae5162be28ca2ede93daea67712b83ddd /net
parent[NETFILTER]: nf_conntrack_ipv6: fix incorrect classification of IPv6 fragment... (diff)
downloadlinux-881dbfe8accc9434dd0d7d052505e3dca6ad9b3c.tar.xz
linux-881dbfe8accc9434dd0d7d052505e3dca6ad9b3c.zip
[NETFILTER]: nfnetlink_log: zero-terminate prefix
Userspace expects a zero-terminated string, so include the trailing zero in the netlink message. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nfnetlink_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index 91a0972ec117..12f92e235a13 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -615,7 +615,7 @@ nfulnl_log_packet(unsigned int pf,
plen = 0;
if (prefix)
- plen = strlen(prefix);
+ plen = strlen(prefix) + 1;
/* all macros expand to constant values at compile time */
/* FIXME: do we want to make the size calculation conditional based on