Revert "netfilter: ctnetlink: use helper function to calculate expect ID"
This reverts commit 42ea0c1913
.
This commit is contained in:
parent
683ecba589
commit
ddb8f59b0a
1 changed files with 1 additions and 2 deletions
|
@ -3413,8 +3413,7 @@ static int ctnetlink_del_expect(struct net *net, struct sock *ctnl,
|
||||||
|
|
||||||
if (cda[CTA_EXPECT_ID]) {
|
if (cda[CTA_EXPECT_ID]) {
|
||||||
__be32 id = nla_get_be32(cda[CTA_EXPECT_ID]);
|
__be32 id = nla_get_be32(cda[CTA_EXPECT_ID]);
|
||||||
|
if (ntohl(id) != (u32)(unsigned long)exp) {
|
||||||
if (id != nf_expect_get_id(exp)) {
|
|
||||||
nf_ct_expect_put(exp);
|
nf_ct_expect_put(exp);
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue