All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert de Bath <list-netfilter@debath.co.uk>
To: Harald Welte <laforge@netfilter.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* [PATCH]
Date: Sat, 30 Jul 2005 08:12:31 +0100 (BST)	[thread overview]
Message-ID: <df9eaa1431a9e102@mayday.cix.co.uk> (raw)
In-Reply-To: <20050729105834.GD7063@rama.de.gnumonks.org>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 872 bytes --]

On Fri, 29 Jul 2005, Harald Welte wrote:

> On Thu, Jul 28, 2005 at 11:53:49AM +0100, Robert de Bath wrote:
>> Hi all,
>> I've been mixing iptables 1.2.8/1.2.11 and 1.3.1/2 tools and unlike I would

> other issues with this as well (one has been added to INCOMPATIBILITIES
> recently).
Yup, spotted that but nfcache is per entry so it doesn't break _this_.

> If the fix is non-intrusive and doesn't reaquire a lot of additional
> computational complexity, I would accept such a patch.  Otherwise I
> don't really think it's worth supporting such a setup.  Usually you have
> one version of iptables installed, not multiple.

<grin> The change was a _lot_ easier than I thought, looks like it's a
real bug too. [attached]

-- 
Rob.                          (Robert de Bath <robert$ @ debath.co.uk>)
                                              <http://www.debath.co.uk/>

[-- Attachment #2: Type: TEXT/PLAIN, Size: 422 bytes --]

--- libiptc/libiptc.c.orig	2005-07-19 23:03:49.000000000 +0100
+++ libiptc/libiptc.c	2005-07-30 07:59:06.312238644 +0100
@@ -399,7 +399,7 @@
 	/* sort only user defined chains */
 	if (!c->hooknum) {
 		list_for_each_entry(tmp, &h->chains, list) {
-			if (strcmp(c->name, tmp->name) <= 0) {
+			if (!tmp->hooknum && strcmp(c->name, tmp->name) <= 0) {
 				list_add(&c->list, tmp->list.prev);
 				return;
 			}

  reply	other threads:[~2005-07-30  7:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-27 11:11 HElp with script execution!! Visham Ramsurrun
2005-07-27 12:05 ` Christian Theil
2005-07-28 10:53 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Robert de Bath
2005-07-29 10:58   ` Harald Welte
2005-07-30  7:12     ` Robert de Bath [this message]
2005-07-31  6:48       ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* [PATCH] Harald Welte
2005-08-01  7:19     ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Jan Engelhardt
2005-08-01 20:02       ` Harald Welte

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=df9eaa1431a9e102@mayday.cix.co.uk \
    --to=list-netfilter@debath.co.uk \
    --cc=laforge@netfilter.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.