From ab4d3888e42368010efe4d03bc5b5d65501f566f Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 19 Feb 2008 19:27:55 +0000 Subject: [PATCH] hunt for killerchicken's socket counting problem svn:r13578 --- src/common/compat.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.11.4.GIT