Skip to content

Commit 6b66271

Browse files
Add missing keysend preimage check on inbound onion read.
1 parent ecd8238 commit 6b66271

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/msgs.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,9 @@ impl<NS: Deref> ReadableArgs<(Option<PublicKey>, &NS)> for InboundOnionPayload w
23622362
}
23632363

23642364
if let Some(blinding_point) = intro_node_blinding_point.or(update_add_blinding_point) {
2365-
if short_id.is_some() || payment_data.is_some() || payment_metadata.is_some() {
2365+
if short_id.is_some() || payment_data.is_some() || payment_metadata.is_some() ||
2366+
keysend_preimage.is_some()
2367+
{
23662368
return Err(DecodeError::InvalidValue)
23672369
}
23682370
let enc_tlvs = encrypted_tlvs_opt.ok_or(DecodeError::InvalidValue)?.0;

0 commit comments

Comments
 (0)