2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

style nits

This commit is contained in:
Evan Hunt
2019-12-09 10:49:37 -08:00
committed by Witold Kręcicki
parent 35679aef9b
commit 8c0792723d
2 changed files with 5 additions and 4 deletions

View File

@@ -733,7 +733,8 @@ nmsocket_maybe_destroy(isc_nmsocket_t *sock) {
*/
LOCK(&sock->lock);
if (atomic_load(&sock->active) || atomic_load(&sock->destroying) ||
!atomic_load(&sock->closed) || atomic_load(&sock->references) != 0) {
!atomic_load(&sock->closed) || atomic_load(&sock->references) != 0)
{
UNLOCK(&sock->lock);
return;
}
@@ -747,8 +748,7 @@ nmsocket_maybe_destroy(isc_nmsocket_t *sock) {
}
}
if (active_handles == 0 || sock->tcphandle != NULL)
{
if (active_handles == 0 || sock->tcphandle != NULL) {
destroy = true;
}
UNLOCK(&sock->lock);