Commit 1013c093 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Add missing acquire memory barrier in isc_nmhandle_unref

The ThreadSanitizer uses system synchronization primitives to check for
data race.  The netmgr handle->references was missing acquire memory
barrier before resetting and reusing the memory occupied by isc_nmhandle_t.
parent 50d3344c
Pipeline #44165 passed with stages
in 27 minutes and 51 seconds
......@@ -1156,6 +1156,8 @@ isc_nmhandle_unref(isc_nmhandle_t *handle) {
if (isc_refcount_decrement(&handle->references) > 1) {
/* We need an acquire memory barrier here */
sock = handle->sock;
handle->sock = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment