summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-12-04 15:27:53 +0000
committerPatrick McHardy <kaber@trash.net>2007-12-04 15:27:53 +0000
commitf791a5d77d09a689da95e9899cb0eb15b1401ddf (patch)
tree41dd1d3be15d93239054e084f40eb01f587368a5
parentdf1ef3862761e534c6cec6bd9370285cb5909dd0 (diff)
Fix sockfd use accounting for kernels without autoloading
-rw-r--r--libiptc/libiptc.c4
1 files changed, 0 insertions, 4 deletions
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;
}