aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/ntpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 2700cf515..465c74d6c 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -2018,7 +2018,7 @@ recv_and_process_peer_pkt(peer_t *p)
2018 2018
2019#if ENABLE_FEATURE_NTP_AUTH 2019#if ENABLE_FEATURE_NTP_AUTH
2020 if (size != NTP_MSGSIZE_NOAUTH && size != NTP_MSGSIZE_MD5_AUTH && size != NTP_MSGSIZE_SHA1_AUTH) { 2020 if (size != NTP_MSGSIZE_NOAUTH && size != NTP_MSGSIZE_MD5_AUTH && size != NTP_MSGSIZE_SHA1_AUTH) {
2021 bb_error_msg("malformed packet received from %s", p->p_dotted); 2021 bb_error_msg("malformed packet received from %s: size %u", p->p_dotted, (int)size);
2022 return; 2022 return;
2023 } 2023 }
2024 if (p->key_entry && hashes_differ(p, &msg)) { 2024 if (p->key_entry && hashes_differ(p, &msg)) {
@@ -2027,7 +2027,7 @@ recv_and_process_peer_pkt(peer_t *p)
2027 } 2027 }
2028#else 2028#else
2029 if (size != NTP_MSGSIZE_NOAUTH && size != NTP_MSGSIZE_MD5_AUTH) { 2029 if (size != NTP_MSGSIZE_NOAUTH && size != NTP_MSGSIZE_MD5_AUTH) {
2030 bb_error_msg("malformed packet received from %s", p->p_dotted); 2030 bb_error_msg("malformed packet received from %s: size %u", p->p_dotted, (int)size);
2031 return; 2031 return;
2032 } 2032 }
2033#endif 2033#endif