netfilter: xt_hashlimit: IPV6 bugfix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, March 26, 2010 - 9:59 am

Gitweb:     http://git.kernel.org/linus/8f5992291457c8e6de2f5fe39849de6756be1a96
Commit:     8f5992291457c8e6de2f5fe39849de6756be1a96
Parent:     9c13886665c43600bd0af4b38e33c654e648e078
Author:     Eric Dumazet <eric.dumazet@gmail.com>
AuthorDate: Thu Mar 25 17:25:11 2010 +0100
Committer:  Patrick McHardy <kaber@trash.net>
CommitDate: Thu Mar 25 17:25:11 2010 +0100

    netfilter: xt_hashlimit: IPV6 bugfix
    
    A missing break statement in hashlimit_ipv6_mask(), and masks
    between /64 and /95 are not working at all...
    
    Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
---
 net/netfilter/xt_hashlimit.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c
index 70d561a..215a648 100644
--- a/net/netfilter/xt_hashlimit.c
+++ b/net/netfilter/xt_hashlimit.c
@@ -493,6 +493,7 @@ static void hashlimit_ipv6_mask(__be32 *i, unsigned int p)
 	case 64 ... 95:
 		i[2] = maskl(i[2], p - 64);
 		i[3] = 0;
+		break;
 	case 96 ... 127:
 		i[3] = maskl(i[3], p - 96);
 		break;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
netfilter: xt_hashlimit: IPV6 bugfix, Linux Kernel Mailing ..., (Fri Mar 26, 9:59 am)