[Bug 117] register_target() creates circular linked list
bugzilla-daemon@netfilter.org
bugzilla-daemon@netfilter.org
Sat, 23 Aug 2003 22:24:23 +0200
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.