From 497344b14e52169db8dd0ae7b6bcbe6ba77dbbe6 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Wed, 26 May 2004 08:21:36 +0000 Subject: [PATCH 1/1] ipt_ACCOUNT, kernel-2.4: (tomj) fixed kernel memory leak for class A networks --- linux/net/ipv4/netfilter/ipt_ACCOUNT.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux/net/ipv4/netfilter/ipt_ACCOUNT.c b/linux/net/ipv4/netfilter/ipt_ACCOUNT.c index c22b419..7ec2ec6 100644 --- a/linux/net/ipv4/netfilter/ipt_ACCOUNT.c +++ b/linux/net/ipv4/netfilter/ipt_ACCOUNT.c @@ -75,7 +75,7 @@ void ipt_account_data_free(void *data, unsigned char depth) } /* Free for 24 bit network */ - if (depth == 3) { + if (depth == 2) { unsigned int a, b; for (a=0; a <= 255; a++) { if (((struct ipt_account_mask_8 *)data)->mask_16[a]) { -- 1.7.1