Skip to content

Commit 5b0e213

Browse files
f unnecessary check
1 parent 5d069b4 commit 5b0e213

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lightning/src/onion_message/packet.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ impl ReadableArgs<SharedSecret> for Payload {
167167
Error::Io(ioe) => DecodeError::from(ioe),
168168
_ => DecodeError::InvalidValue
169169
})?;
170-
if v.0 == 0 { // 0-length payload
171-
return Err(DecodeError::InvalidValue)
172-
}
173170

174171
let mut rd = FixedLengthReader::new(r, v.0);
175172
// TODO: support reply paths

0 commit comments

Comments
 (0)