Skip to content

Commit bd1fad5

Browse files
committed
f fix missing read type
1 parent 91a7000 commit bd1fad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4902,7 +4902,7 @@ impl Readable for HTLCFailureMsg {
49024902
let mut s = FixedLengthReader::new(reader, length.0);
49034903
let res = Readable::read(&mut s)?;
49044904
s.eat_remaining()?; // Return ShortRead if there's actually not enough bytes
4905-
Ok(HTLCFailureMsg::Relay(res))
4905+
Ok(HTLCFailureMsg::Malformed(res))
49064906
},
49074907
_ => Err(DecodeError::UnknownRequiredFeature),
49084908
}

0 commit comments

Comments
 (0)