]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Increased the buffer for netlink responses.
authorTobias Brunner <tobias@strongswan.org>
Fri, 5 Feb 2010 19:02:39 +0000 (20:02 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 5 Feb 2010 19:10:54 +0000 (20:10 +0100)
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

index 0b4f4dd325e6fce9d8af7f4442fccddcff138f3b..289714b50ac6d66f8ae5554ab23ab2be167a508c 100644 (file)
@@ -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;