From: Patrick McHardy Date: Tue, 4 Dec 2007 15:27:53 +0000 (+0000) Subject: Fix sockfd use accounting for kernels without autoloading X-Git-Tag: v1.4.0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f791a5d77d09a689da95e9899cb0eb15b1401ddf;p=thirdparty%2Fiptables.git Fix sockfd use accounting for kernels without autoloading --- diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index e7ffb01b..05985050 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -866,10 +866,6 @@ TC_INIT(const char *tablename) CHECK(h); return h; error: - if (--sockfd_use == 0) { - close(sockfd); - sockfd = -1; - } TC_FREE(&h); return NULL; }