mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
style nits
This commit is contained in:
committed by
Witold Kręcicki
parent
35679aef9b
commit
8c0792723d
@@ -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);
|
||||
|
@@ -1079,7 +1079,8 @@ isc__nm_tcp_shutdown(isc_nmsocket_t *sock) {
|
||||
|
||||
if (sock->type == isc_nm_tcpsocket &&
|
||||
sock->tcphandle != NULL &&
|
||||
sock->rcb.recv != NULL) {
|
||||
sock->rcb.recv != NULL)
|
||||
{
|
||||
sock->rcb.recv(sock->tcphandle, NULL, sock->rcbarg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user