Skip to content

Commit 8074ebe

Browse files
author
CKI Backport Bot
committed
selftests: netfilter: Fix missing return values in conntrack_dump_flush
JIRA: https://issues.redhat.com/browse/RHEL-74034 commit 041bd1e Author: guanjing <guanjing@cmss.chinamobile.com> Date: Fri Nov 8 16:13:58 2024 +0800 selftests: netfilter: Fix missing return values in conntrack_dump_flush Fix the bug of some functions were missing return values. Fixes: eff3c55 ("netfilter: ctnetlink: support filtering by zone") Signed-off-by: Guan Jing <guanjing@cmss.chinamobile.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>
1 parent 1fe53f2 commit 8074ebe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/testing/selftests/net/netfilter/conntrack_dump_flush.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ static int build_cta_tuple_v4(struct nlmsghdr *nlh, int type,
4343
mnl_attr_nest_end(nlh, nest_proto);
4444

4545
mnl_attr_nest_end(nlh, nest);
46+
47+
return 0;
4648
}
4749

4850
static int build_cta_tuple_v6(struct nlmsghdr *nlh, int type,
@@ -71,6 +73,8 @@ static int build_cta_tuple_v6(struct nlmsghdr *nlh, int type,
7173
mnl_attr_nest_end(nlh, nest_proto);
7274

7375
mnl_attr_nest_end(nlh, nest);
76+
77+
return 0;
7478
}
7579

7680
static int build_cta_proto(struct nlmsghdr *nlh)
@@ -90,6 +94,8 @@ static int build_cta_proto(struct nlmsghdr *nlh)
9094
mnl_attr_nest_end(nlh, nest_proto);
9195

9296
mnl_attr_nest_end(nlh, nest);
97+
98+
return 0;
9399
}
94100

95101
static int conntrack_data_insert(struct mnl_socket *sock, struct nlmsghdr *nlh,

0 commit comments

Comments
 (0)