Skip to content
  • Ondřej Surý's avatar
    lib/dns/resolver.c: Convert (dns_view_t *)->weakrefs to isc_refcount_t · 232140ed
    Ondřej Surý authored
    There's a deadlock in BIND 9 code where (dns_view_t){ .lock } and
    (dns_resolver_t){ .buckets[i].lock } gets locked in different order.  When
    view->weakrefs gets converted to a reference counting we can reduce the locking
    in dns_view_weakdetach only to cases where it's the last instance of the
    dns_view_t object.
    
    (cherry picked from commit a7c9a52c)
    232140ed