bugzilla-daemon@netfilter.org
2003-Aug-09 08:34 UTC
[Bug 119] New: iptc_flush_entries causes segmentation fault
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.
Seemingly Similar Threads
- [Bug 119] iptc_flush_entries causes segmentation fault
- [Bug 1289] New: iptables build fails with kernel 4.20-rc1 - gnu_inline attributes
- [Bug 1067] New: Compilation failure on Linux 4.5.x when including libiptc/libiptc.h
- [Bug 1275] New: if IPTC_DEBUG is defined, compiler reports errors
- [Bug 638] New: make libiptc a public interface
