summaryrefslogtreecommitdiffstats
path: root/examples/nft-chain-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-chain-add.c')
-rw-r--r--examples/nft-chain-add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/nft-chain-add.c b/examples/nft-chain-add.c
index ca1edf9..e0d889d 100644
--- a/examples/nft-chain-add.c
+++ b/examples/nft-chain-add.c
@@ -138,6 +138,8 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
+ mnl_nlmsg_batch_stop(batch);
+
ret = mnl_socket_recvfrom(nl, buf, sizeof(buf));
while (ret > 0) {
ret = mnl_cb_run(buf, ret, chain_seq, portid, NULL, NULL);