From af3062777d3f99e9371aeeded872a2cbeb0b5a0c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 3 Sep 2010 12:59:15 +0200 Subject: ct: fix regression with helpers for Linux kernel >= 2.6.34 Since Linux kernel 2.6.34, the attribute validation for CTA_HELP_NAME requires that the string must be NULL terminated. I think that this should be fixed in the kernel instead since it breaks old binaries of the library. However, we're already in 2.6.36-rc, so let's fix it in user-space and hope that everyone upgrades. Signed-off-by: Pablo Neira Ayuso --- src/conntrack/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conntrack/build.c') diff --git a/src/conntrack/build.c b/src/conntrack/build.c index 043c401..b878ddd 100644 --- a/src/conntrack/build.c +++ b/src/conntrack/build.c @@ -361,7 +361,7 @@ static void __build_helper_name(struct nfnlhdr *req, size, CTA_HELP_NAME, ct->helper_name, - strlen(ct->helper_name)); + strlen(ct->helper_name)+1); nfnl_nest_end(&req->nlh, nest); } -- cgit v1.2.3