]> git.ipfire.org Git - thirdparty/bind9.git/commit
Restore more locking in the lib/dns/resolver.c code
authorOndřej Surý <ondrej@sury.org>
Mon, 22 Jul 2019 12:45:23 +0000 (08:45 -0400)
committerOndřej Surý <ondrej@sury.org>
Mon, 22 Jul 2019 13:03:27 +0000 (09:03 -0400)
commita4141fcf981018ced5a4e878e21403e350a20c78
tree1030f42701178cbc7ee091bd2bcf826220d913b7
parent317e36d47e1c5bc60783716a678255b60379590e
Restore more locking in the lib/dns/resolver.c code

1. Restore locking in the fctx_decreference() code, because the insides of the
   function needs to be protected when fctx->references drops to 0.

2. Restore locking in the dns_resolver_attach() code, because two variables are
   accessed at the same time and there's slight chance of data race.
lib/dns/resolver.c