]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: reset netlink sender buffer size of socket restart
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 20 May 2019 18:46:40 +0000 (20:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 20 May 2019 19:06:24 +0000 (21:06 +0200)
commit17c282003f463969f683f9ebaeb6f550c63ec3f5
tree2c1642074b868393936eb0a5b2ec92dc1aa81806
parent9014217972c0a81c17524a7d2fdec6381aa42c69
nft: reset netlink sender buffer size of socket restart

Otherwise, mnl_set_sndbuffer() skips the buffer update after socket
restart. Then, sendmsg() fails with EMSGSIZE later on when sending the
batch to the kernel.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c