From: Tobias Brunner Date: Fri, 5 Feb 2010 19:02:39 +0000 (+0100) Subject: Increased the buffer for netlink responses. X-Git-Tag: 4.3.6~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cc0cc43326f7dbe7be75d377f5a5a19caa1e02c;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/src/pluto/kernel_netlink.c b/src/pluto/kernel_netlink.c index 0b4f4dd325..289714b50a 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;