projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e86638
)
netfilter: conntrack: __nf_ct_l4proto_find() always returns valid pointer
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Sat, 30 Apr 2016 22:34:37 +0000
(
00:34
+0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 5 May 2016 14:39:48 +0000
(16:39 +0200)
Remove unnecessary check for non-nul pointer in destroy_conntrack()
given that __nf_ct_l4proto_find() returns the generic protocol tracker
if the protocol is not supported.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_core.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_conntrack_core.c
b/net/netfilter/nf_conntrack_core.c
index
e3787cf
..
f72ede1
100644
(file)
--- a/
net/netfilter/nf_conntrack_core.c
+++ b/
net/netfilter/nf_conntrack_core.c
@@
-363,7
+363,7
@@
destroy_conntrack(struct nf_conntrack *nfct)
}
rcu_read_lock();
l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct));
- if (l4proto
&& l4proto
->destroy)
+ if (l4proto->destroy)
l4proto->destroy(ct);
rcu_read_unlock();