From: Thomas Jarosch Date: Wed, 26 May 2004 08:21:36 +0000 (+0000) Subject: ipt_ACCOUNT, kernel-2.4: (tomj) fixed kernel memory leak for class A networks X-Git-Tag: v1.9~28 X-Git-Url: http://developer.intra2net.com/git/?p=ipt_ACCOUNT;a=commitdiff_plain;h=497344b14e52169db8dd0ae7b6bcbe6ba77dbbe6;hp=e1b6610133ec95a8f6e83f963c322ae8a8e17c02 ipt_ACCOUNT, kernel-2.4: (tomj) fixed kernel memory leak for class A networks --- 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]) {