diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-02-05 20:02:39 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-02-05 20:10:54 +0100 |
commit | 3cc0cc43326f7dbe7be75d377f5a5a19caa1e02c (patch) | |
tree | e54d7151d30d81259f9936fd1a6155d8bc6a0eaf /src/pluto | |
parent | 1f2da750692430ddacc97babafaca26a60794f8e (diff) | |
download | strongswan-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.c | 1 |
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; |