From: Phil Oester <kernel@linuxace.com>
To: "Laurence J. Lane" <ljlane@nontoxic.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: #263154: iptables: segfault with multiple ip hostnames
Date: Tue, 3 Aug 2004 15:11:30 -0700 [thread overview]
Message-ID: <20040803221130.GA25495@linuxace.com> (raw)
In-Reply-To: <20040803220350.GA5223@ljlane.net>
On Tue, Aug 03, 2004 at 06:03:50PM -0400, Laurence J. Lane wrote:
> http://bugs.debian.org/263154
>
> iptables 1.2.11 segfaults when given a domain name that resolves
> to multiple ip addresses. The situation is the same for kernel
> versions 2.4.26 and 2.6.7.
This is fixed in CVS. Patch below for reference.
Phil
diff -u -r1.68 -r1.69
--- iptables/iptables.c 2004/05/26 16:04:48 1.68
+++ iptables/iptables.c 2004/07/04 15:20:53 1.69
@@ -2339,11 +2339,8 @@
e = NULL;
}
- for (c = 0; c < nsaddrs; c++)
- free(&saddrs[c]);
-
- for (c = 0; c < ndaddrs; c++)
- free(&daddrs[c]);
+ free(saddrs);
+ free(daddrs);
if (opts != original_opts) {
free(opts);
next prev parent reply other threads:[~2004-08-03 22:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-03 22:03 #263154: iptables: segfault with multiple ip hostnames Laurence J. Lane
2004-08-03 22:11 ` Phil Oester [this message]
2004-08-03 22:26 ` Patrick McHardy
2004-08-20 16:09 ` Herve Eychenne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040803221130.GA25495@linuxace.com \
--to=kernel@linuxace.com \
--cc=ljlane@nontoxic.org \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.