summaryrefslogtreecommitdiff
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 2700cf5..465c74d 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -2018,7 +2018,7 @@ recv_and_process_peer_pkt(peer_t *p)
#if ENABLE_FEATURE_NTP_AUTH
if (size != NTP_MSGSIZE_NOAUTH && size != NTP_MSGSIZE_MD5_AUTH && size != NTP_MSGSIZE_SHA1_AUTH) {
- bb_error_msg("malformed packet received from %s", p->p_dotted);
+ bb_error_msg("malformed packet received from %s: size %u", p->p_dotted, (int)size);
return;
}
if (p->key_entry && hashes_differ(p, &msg)) {
@@ -2027,7 +2027,7 @@ recv_and_process_peer_pkt(peer_t *p)
}
#else
if (size != NTP_MSGSIZE_NOAUTH && size != NTP_MSGSIZE_MD5_AUTH) {
- bb_error_msg("malformed packet received from %s", p->p_dotted);
+ bb_error_msg("malformed packet received from %s: size %u", p->p_dotted, (int)size);
return;
}
#endif