Browse Source

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>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
65ff5f8bb1
  1. 3
      common/read_peer_msg.c

3
common/read_peer_msg.c

@ -85,7 +85,8 @@ u8 *read_peer_msg_(const tal_t *ctx,
* message: * message:
* - MUST ignore the 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); return tal_free(msg);
} }

Loading…
Cancel
Save