mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 03:25:07 -05:00
ntp: remove unnecessary check in read_from_socket()
This commit is contained in:
9
ntp_io.c
9
ntp_io.c
@@ -557,12 +557,9 @@ read_from_socket(void *anything)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status > 0) {
|
DEBUG_LOG(LOGF_NtpIO, "Received %d bytes from %s:%d to %s fd %d",
|
||||||
DEBUG_LOG(LOGF_NtpIO, "Received %d bytes from %s:%d to %s fd %d",
|
status, UTI_IPToString(&remote_addr.ip_addr), remote_addr.port,
|
||||||
status,
|
UTI_IPToString(&local_addr.ip_addr), local_addr.sock_fd);
|
||||||
UTI_IPToString(&remote_addr.ip_addr), remote_addr.port,
|
|
||||||
UTI_IPToString(&local_addr.ip_addr), local_addr.sock_fd);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (status >= NTP_NORMAL_PACKET_LENGTH) {
|
if (status >= NTP_NORMAL_PACKET_LENGTH) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user