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

[RT #23333]
This commit is contained in:
Mark Andrews
2011-02-28 12:54:54 +00:00
parent 89f939cfd6
commit ee94e49f30
2 changed files with 7 additions and 3 deletions

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

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.308.12.17 2010/12/22 03:28:13 marka Exp $ */
/* $Id: socket.c,v 1.308.12.18 2011/02/28 12:54:54 marka Exp $ */
/*! \file */
@@ -1833,9 +1833,10 @@ destroy(isc_socket_t **sockp) {
SIGNAL(&manager->shutdown_ok);
#endif /* ISC_PLATFORM_USETHREADS */
UNLOCK(&manager->lock);
/* can't unlock manager as its memory context is still used */
free_socket(sockp);
UNLOCK(&manager->lock);
}
static isc_result_t