mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-10 01:24:30 +01:00
read_peer_msg: ignore errors not destined for this channel.
We quoted the spec, but somehow the implementation disappeared. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -85,7 +85,8 @@ u8 *read_peer_msg_(const tal_t *ctx,
|
||||
* message:
|
||||
* - MUST ignore the message.
|
||||
*/
|
||||
err_pkt(err, &chanid, arg);
|
||||
if (structeq(&chanid, channel) || channel_id_is_all(&chanid))
|
||||
err_pkt(err, &chanid, arg);
|
||||
|
||||
return tal_free(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user