ChangeSet 1.2335, 2005/03/31 22:30:09-08:00, [EMAIL PROTECTED]
[NETFILTER]: ipt_hashlimit: Fix bug introduced by hlist changes.
Signed-off-by: Harald Welte <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
ipt_hashlimit.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -Nru a/net/ipv4/netfilter/ipt_hashlimit.c
b/net/ipv4/netfilter/ipt_hashlimit.c
--- a/net/ipv4/netfilter/ipt_hashlimit.c 2005-04-01 09:11:41 -08:00
+++ b/net/ipv4/netfilter/ipt_hashlimit.c 2005-04-01 09:11:41 -08:00
@@ -117,18 +117,18 @@
static inline struct dsthash_ent *
__dsthash_find(const struct ipt_hashlimit_htable *ht, struct dsthash_dst *dst)
{
- struct dsthash_ent *ent = NULL;
+ struct dsthash_ent *ent;
struct hlist_node *pos;
u_int32_t hash = hash_dst(ht, dst);
if (!hlist_empty(&ht->hash[hash]))
hlist_for_each_entry(ent, pos, &ht->hash[hash], node) {
if (dst_cmp(ent, dst)) {
- break;
+ return ent;
}
}
- return ent;
+ return NULL;
}
/* allocate dsthash_ent, initialize dst, put in htable and lock it */
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html