mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
3044. [bug] Hold the socket manager lock while freeing the socket.
[RT #23333]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: socket.c,v 1.336 2011/02/18 04:19:05 marka Exp $ */
|
||||
/* $Id: socket.c,v 1.337 2011/02/28 12:48:30 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
|
||||
|
Reference in New Issue
Block a user