projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3e241b
)
netfilter: ipset: add missing break statemtns in ip_set_get_ip_port()
author
Patrick McHardy
<kaber@trash.net>
Wed, 2 Feb 2011 08:31:37 +0000
(09:31 +0100)
committer
Patrick McHardy
<kaber@trash.net>
Wed, 2 Feb 2011 08:31:37 +0000
(09:31 +0100)
Don't fall through in the switch statement, otherwise IPv4 headers
are incorrectly parsed again as IPv6 and the return value will always
be 'false'.
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/ipset/ip_set_getport.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/ipset/ip_set_getport.c
b/net/netfilter/ipset/ip_set_getport.c
index 76737bba28ee71670ceb95e716b63d14e573fb81..4dd2785a5c72cdf70d9cfe1141aa6d5ad6f87e7a 100644
(file)
--- a/
net/netfilter/ipset/ip_set_getport.c
+++ b/
net/netfilter/ipset/ip_set_getport.c
@@
-118,8
+118,10
@@
ip_set_get_ip_port(const struct sk_buff *skb, u8 pf, bool src, __be16 *port)
switch (pf) {
case AF_INET:
ret = ip_set_get_ip4_port(skb, src, port, &proto);
+ break;
case AF_INET6:
ret = ip_set_get_ip6_port(skb, src, port, &proto);
+ break;
default:
return false;
}