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