From 3cc0cc43326f7dbe7be75d377f5a5a19caa1e02c Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 5 Feb 2010 20:02:39 +0100 Subject: Increased the buffer for netlink responses. If an error occurs while manipulating policies in the kernel, the original netlink request gets attached to the response. Prior to Linux 2.6.32 the size in the netlink header of the response was wrong. --- src/pluto/kernel_netlink.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/pluto/kernel_netlink.c b/src/pluto/kernel_netlink.c index 0b4f4dd32..289714b50 100644 --- a/src/pluto/kernel_netlink.c +++ b/src/pluto/kernel_netlink.c @@ -348,6 +348,7 @@ static bool netlink_policy(struct nlmsghdr *hdr, bool enoent_ok, struct { struct nlmsghdr n; struct nlmsgerr e; + char data[1024]; } rsp; int error; -- cgit v1.2.3