Skip to content

Commit ba6d593

Browse files
authored
chore: fix misleading log message for body size check (#19173)
1 parent 876346d commit ba6d593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/net/ecies/src/codec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl Decoder for ECIESCodec {
110110
self.ecies.read_header(&mut buf.split_to(ECIES::header_len()))?;
111111

112112
if body_size > MAX_INITIAL_HANDSHAKE_SIZE {
113-
trace!(?body_size, max=?MAX_INITIAL_HANDSHAKE_SIZE, "Header exceeds max initial handshake size");
113+
trace!(?body_size, max=?MAX_INITIAL_HANDSHAKE_SIZE, "Body exceeds max initial handshake size");
114114
return Err(ECIESErrorImpl::InitialHeaderBodyTooLarge {
115115
body_size,
116116
max_body_size: MAX_INITIAL_HANDSHAKE_SIZE,

0 commit comments

Comments
 (0)