]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix sockfd use accounting for kernels without autoloading
authorPatrick McHardy <kaber@trash.net>
Tue, 4 Dec 2007 15:27:53 +0000 (15:27 +0000)
committerPatrick McHardy <kaber@trash.net>
Tue, 4 Dec 2007 15:27:53 +0000 (15:27 +0000)
libiptc/libiptc.c

index e7ffb01b4b1e2dc283348eb7277f76d9bf026d5f..059850503c32eb1ba5b20d58da23a2fe27611d96 100644 (file)
@@ -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;
 }