aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-02-05 20:02:39 +0100
committerTobias Brunner <tobias@strongswan.org>2010-02-05 20:10:54 +0100
commit3cc0cc43326f7dbe7be75d377f5a5a19caa1e02c (patch)
treee54d7151d30d81259f9936fd1a6155d8bc6a0eaf /src/pluto
parent1f2da750692430ddacc97babafaca26a60794f8e (diff)
downloadstrongswan-3cc0cc43326f7dbe7be75d377f5a5a19caa1e02c.tar.bz2
strongswan-3cc0cc43326f7dbe7be75d377f5a5a19caa1e02c.tar.xz
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.
Diffstat (limited to 'src/pluto')
-rw-r--r--src/pluto/kernel_netlink.c1
1 files changed, 1 insertions, 0 deletions
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;