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. 1
      common/read_peer_msg.c

1
common/read_peer_msg.c

@ -85,6 +85,7 @@ u8 *read_peer_msg_(const tal_t *ctx,
* message: * message:
* - MUST ignore the message. * - MUST ignore the message.
*/ */
if (structeq(&chanid, channel) || channel_id_is_all(&chanid))
err_pkt(err, &chanid, arg); err_pkt(err, &chanid, arg);
return tal_free(msg); return tal_free(msg);

Loading…
Cancel
Save