mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 10:05:08 -05:00
ntp: close only client socket when destroying NCR instance
This commit is contained in:
@@ -395,6 +395,7 @@ NCR_DestroyInstance(NCR_Instance instance)
|
|||||||
instance->timer_running = 0;
|
instance->timer_running = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (instance->mode == MODE_CLIENT)
|
||||||
NIO_CloseClientSocket(instance->local_addr.sock_fd);
|
NIO_CloseClientSocket(instance->local_addr.sock_fd);
|
||||||
|
|
||||||
/* Free the data structure */
|
/* Free the data structure */
|
||||||
|
|||||||
Reference in New Issue
Block a user