Commit 1c79e15f authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Merge branch '1474-threadsanitizer-data-race-lib-dns-message-c' into 'master'

Add missing acquire memory barrier in isc_nmhandle_unref

Closes #1474

See merge request !3689
parents 50d3344c 1013c093
Pipeline #44438 passed with stages
in 5 minutes and 26 seconds
......@@ -1156,6 +1156,8 @@ isc_nmhandle_unref(isc_nmhandle_t *handle) {
if (isc_refcount_decrement(&handle->references) > 1) {
return;
}
/* We need an acquire memory barrier here */
(void)isc_refcount_current(&handle->references);
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