3044. [bug] Hold the socket manager lock while freeing the socket.

[RT #23333]
This commit is contained in:
Mark Andrews
2011-02-28 12:51:28 +00:00
parent 8b148f14da
commit 5f3a264fe3
2 changed files with 7 additions and 3 deletions
+3
View File
@@ -1,3 +1,6 @@
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
+4 -3
View File
@@ -15,7 +15,7 @@
* 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 */
@@ -1997,9 +1997,10 @@ destroy(isc__socket_t **sockp) {
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