]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
ipt_ACCOUNT, kernel-2.4: (tomj) fixed kernel memory leak for class A networks
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 26 May 2004 08:21:36 +0000 (08:21 +0000)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 26 May 2004 08:21:36 +0000 (08:21 +0000)
linux/net/ipv4/netfilter/ipt_ACCOUNT.c

index c22b419577616eecf50a13b7a50b2e421dc93516..7ec2ec62796494c13a952fa421a2bbf4a97c7c2c 100644 (file)
@@ -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]) {