From 65ff5f8bb18931bdfebd103793c7d165e45440d8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 19 Feb 2018 11:36:15 +1030 Subject: [PATCH] read_peer_msg: ignore errors not destined for this channel. We quoted the spec, but somehow the implementation disappeared. Signed-off-by: Rusty Russell --- common/read_peer_msg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/read_peer_msg.c b/common/read_peer_msg.c index 96c61a015..2f8f5a3b5 100644 --- a/common/read_peer_msg.c +++ b/common/read_peer_msg.c @@ -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); }