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