~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to src/patches/iptables-1.2.11.patch

  • Committer: ipfire
  • Date: 2006-02-15 21:15:54 UTC
  • Revision ID: git-v1:cd1a2927226c734d96478e12bb768256fb64a06a


git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: iptables.c
 
2
===================================================================
 
3
RCS file: /cvspublic/iptables/iptables.c,v
 
4
retrieving revision 1.68
 
5
retrieving revision 1.71
 
6
diff -u -r1.68 -r1.71
 
7
--- iptables.c  26 May 2004 16:04:48 -0000      1.68
 
8
+++ iptables.c  30 Aug 2004 16:00:09 -0000      1.71
 
9
@@ -551,7 +551,7 @@
 
10
 
 
11
                while (host->h_addr_list[*naddr] != (char *) NULL)
 
12
                        (*naddr)++;
 
13
-               addr = fw_calloc(*naddr, sizeof(struct in_addr));
 
14
+               addr = fw_calloc(*naddr, sizeof(struct in_addr) * *naddr);
 
15
                for (i = 0; i < *naddr; i++)
 
16
                        inaddrcpy(&(addr[i]),
 
17
                                  (struct in_addr *) host->h_addr_list[i]);
 
18
@@ -2339,11 +2339,8 @@
 
19
                e = NULL;
 
20
        }
 
21
 
 
22
-       for (c = 0; c < nsaddrs; c++)
 
23
-               free(&saddrs[c]);
 
24
-
 
25
-       for (c = 0; c < ndaddrs; c++)
 
26
-               free(&daddrs[c]);
 
27
+       free(saddrs);
 
28
+       free(daddrs);
 
29
 
 
30
        if (opts != original_opts) {
 
31
                free(opts);