+3044. [bug] Hold the socket manager lock while freeing the socket.
+ [RT #23333]
+
3043. [test] Merged in the NetBSD ATF test framework (currently
version 0.12) for development of future unit tests.
Use configure --with-atf to build ATF internally
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: socket.c,v 1.333.14.3 2011/02/28 01:20:04 tbox Exp $ */
+/* $Id: socket.c,v 1.333.14.4 2011/02/28 12:51:28 marka Exp $ */
/*! \file */
SIGNAL(&manager->shutdown_ok);
#endif /* USE_WATCHER_THREAD */
- UNLOCK(&manager->lock);
-
+ /* can't unlock manager as its memory context is still used */
free_socket(sockp);
+
+ UNLOCK(&manager->lock);
}
static isc_result_t