[Bug 119] New: iptc_flush_entries causes segmentation fault

bugzilla-daemon@netfilter.org bugzilla-daemon@netfilter.org
Sat, 09 Aug 2003 10:34:21 +0200


https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=119

           Summary: iptc_flush_entries causes segmentation fault
           Product: netfilter/iptables
           Version: linux-2.4.x
          Platform: other
               URL: http://cutterslade.dhs.org/~wesley/iptablesbug/
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: unknown
        AssignedTo: laforge@netfilter.org
        ReportedBy: wesley@cutterslade.dhs.org
                CC: netfilter-buglog@lists.netfilter.org


I got fed up with trying to setup a firewall using a bash script, so I decided
to tackle libiptc.  I'm just getting started, and the first task was to write a
function to flush all existing chains.  I can't seem to call
iptc_flush_entries() in my code without getting a seg-fault. 
iptc_flush_entries() dosn't cause the seg-fault, but the value returned from
subesquent calls to iptc_next_chain() causes a seg-fault, instead of a pointer
to a chain name, I keep getting 0x28.  This may be my incompetence surfacing,
but I can't find anything in my code that would cause this.  see the included
URL (cutterslade.dhs.org/~wesley/iptablesbug/) for code samples and explanations.

Wesley Hartford



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.