bugzilla-daemon@netfilter.org
2003-Aug-23 20:24 UTC
[Bug 117] register_target() creates circular linked list
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=117 ------- Additional Comments From laforge@netfilter.org 2003-08-23 22:24 ------- I'm not sure if I understand you correctly. How does register_target create a circular list? initially, iptables_targets == NULL. then you register the first target (t), and you set t->next = iptables_targets (== NULL), and then point iptables_targets to t. Result: iptables_targets == t; t->next == NULL. if you register a second target (t2). Result: iptables_targets == t2, t2->next == t, t->next == NULL. Maybe you can be a bit more verbose ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
bugzilla-daemon@netfilter.org
2003-Aug-30 18:27 UTC
[Bug 117] register_target() creates circular linked list
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=117
laforge@netfilter.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From laforge@netfilter.org 2003-08-30 20:27 -------
Comment from an email of the submitter:
Date: Wed, 27 Aug 2003 09:52:53 -0700 (PDT)
From: Doug McNash <dmcnash@yahoo.com>
Reply-To: dmcnash@charter.net
Subject: Re: [Bug 117] register_target() creates circular linked list
To: laforge@netfilter.org
It looks as if it was some compilier flag mismatch
causing some strange interaction. I am basically
linking iptables.o into a JNI (Java Native) wrapper,
i.e. a shared object, I had to change and get into
sync all the link flags. Debugging indicated that the
iptables_targets was circular on the second call to
do_command(). I had initially "fixed" it by appending
to the end of the list in
register_targets vs prepending. Rolling back to the
original code after fixing all the linker flags to
suit my app, it does not exhibit the problem now.
Sorry for assuming a source code bug.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Seemingly Similar Threads
- what''s the meaning of xchg()?
- [Bug 440] Space in filename causes Forged DCC command from x.x.x.x: 0.0.0.0:0
- [Bug 22] Linux kernel crashes when incoming/outgoing interfaces differ
- [Bug 59] sparc64 conntrack issue with expecting related connections, FTP
- [Bug 47] conntrack breaks nfs, corrupted packets