summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-02-19 19:27:55 +0000
committerRoger Dingledine <arma@torproject.org>2008-02-19 19:27:55 +0000
commitab4d3888e42368010efe4d03bc5b5d65501f566f (patch)
tree5197e5e1867269585d2b3ac53d3e3d4fc211753d
parentbe8a85dc1c25a582de533fb3354bde767b60b1bb (diff)
downloadtor-ab4d3888e42368010efe4d03bc5b5d65501f566f.tar.gz
tor-ab4d3888e42368010efe4d03bc5b5d65501f566f.zip
hunt for killerchicken's socket counting problem
svn:r13578
-rw-r--r--src/common/compat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index b1b18fa7ab..5218d29f41 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -509,6 +509,7 @@ tor_close_socket(int s)
#else
close(s);
#endif
+ tor_assert(n_sockets_open > 0);
--n_sockets_open;
}