]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
selftests: netfilter: Add missing return value
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Fri, 27 Sep 2024 03:22:05 +0000 (11:22 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 27 Sep 2024 11:59:12 +0000 (13:59 +0200)
There is no return value in count_entries, just add it.

Fixes: eff3c558bb7e ("netfilter: ctnetlink: support filtering by zone")
Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c

index bd9317bf5adafb4fc5d55a5bcba2b041e39cc50c..dc056fec993bd38059227a6050c8f1723cb038f1 100644 (file)
@@ -207,6 +207,7 @@ static int conntrack_data_generate_v6(struct mnl_socket *sock,
 static int count_entries(const struct nlmsghdr *nlh, void *data)
 {
        reply_counter++;
+       return MNL_CB_OK;
 }
 
 static int conntracK_count_zone(struct mnl_socket *sock, uint16_t zone)