[PATCH] segmentation fault in free
Thomas Woerner
twoerner at redhat.com
Thu Aug 26 15:36:56 CEST 2004
Hello,
I have found a bad bug in iptables. saddrs and daddrs are allocated with calloc in
host_to_addr if a hostname resolves to more than one ip address, but each array
element if getting freed in do_command. The first free will free the whole array and
the others are returning that this is not a pointer or are segfaulting.
Fix for this is attached.
Thanks,
Thomas
--
Thomas Woerner
Software Engineer Phone: +49-711-96437-310
Red Hat GmbH Fax : +49-711-96437-111
Hauptstaetterstr. 58 Email: Thomas Woerner <twoerner at redhat.com>
D-70178 Stuttgart Web : http://www.redhat.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iptables-1.2.11-free.patch
Type: text/x-patch
Size: 369 bytes
Desc: not available
Url : /pipermail/netfilter-devel/attachments/20040826/ae34b8fe/iptables-1.2.11-free.bin
More information about the netfilter-devel
mailing list