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.
This commit is contained in:
Tobias Brunner 2010-02-05 20:02:39 +01:00
parent 1f2da75069
commit 3cc0cc4332
1 changed files with 1 additions and 0 deletions

View 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;