diff options
author | Patrick McHardy <kaber@trash.net> | 2006-01-05 21:20:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-05 21:20:02 +0100 |
commit | a9b305c4e56f97d6a2ae4f21691bc13797498caf (patch) | |
tree | db6474b1b08573fc4d2e1c97aacdf60791623af3 /net | |
parent | [NETFILTER]: Fix module_param types and permissions (diff) | |
download | linux-a9b305c4e56f97d6a2ae4f21691bc13797498caf.tar.xz linux-a9b305c4e56f97d6a2ae4f21691bc13797498caf.zip |
[NETFILTER]: ctnetlink: Fix dumping of helper name
Properly dump the helper name instead of internal kernel data.
Based on patch by Marcus Sundberg <marcus@ingate.com>.
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/ipv4/netfilter/ip_conntrack_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_netlink.c b/net/ipv4/netfilter/ip_conntrack_netlink.c index 703f2d2e3464..c9ebbe0d2d9c 100644 --- a/net/ipv4/netfilter/ip_conntrack_netlink.c +++ b/net/ipv4/netfilter/ip_conntrack_netlink.c @@ -161,7 +161,7 @@ ctnetlink_dump_helpinfo(struct sk_buff *skb, const struct ip_conntrack *ct) return 0; nest_helper = NFA_NEST(skb, CTA_HELP); - NFA_PUT(skb, CTA_HELP_NAME, CTA_HELP_MAXNAMESIZE, &ct->helper->name); + NFA_PUT(skb, CTA_HELP_NAME, strlen(ct->helper->name), ct->helper->name); if (ct->helper->to_nfattr) ct->helper->to_nfattr(skb, ct); |