summaryrefslogtreecommitdiffstats
path: root/examples/nft-chain-del.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-chain-del.c')
-rw-r--r--examples/nft-chain-del.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/nft-chain-del.c b/examples/nft-chain-del.c
index b756b46..e99bb8a 100644
--- a/examples/nft-chain-del.c
+++ b/examples/nft-chain-del.c
@@ -114,6 +114,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);