Skip to content

Commit f11520f

Browse files
guanjinggregkh
authored andcommitted
selftests: netfilter: Fix missing return values in conntrack_dump_flush
[ Upstream commit 041bd1e ] Fix the bug of some functions were missing return values. Fixes: eff3c55 ("netfilter: ctnetlink: support filtering by zone") Signed-off-by: Guan Jing <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 5556876 commit f11520f

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)