PATCH: libiptc leaking file descriptors
Harald Welte
laforge@gnumonks.org
Mon, 7 Jan 2002 14:45:20 +0100
On Sun, Jan 06, 2002 at 12:40:31PM +0000, James Hollingshead wrote:
> I have a problem with libiptc which I think is a bug in it. I have an
> application which has to insert and delete a number of firewall rules.
> Each call to iptc_init() does sockfd=socket(...), and this socket is
> never closed. I'm assuming that I am supposed to call iptc_init()
> numerous times since the handle gets free()ed after each commit, and
> the information in it might not still be valid a few minutes later
> anyway.
Thanks, I've applied your patch to cvs.
> Thanks,
> James Hollingshead
--
Live long and prosper
- Harald Welte / laforge@gnumonks.org http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M-
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)