mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
hsmd: fix missing return bug
One must `return` the bad_req, otherwise you continue onward, usually
with bad or unexpected results.
introduced in 6b6b7eac61
This commit is contained in:
committed by
Christian Decker
parent
66f59659a7
commit
632b42da40
@@ -1007,7 +1007,7 @@ static struct io_plan *handle_sign_remote_commitment_tx(struct io_conn *conn,
|
|||||||
&output_witscripts,
|
&output_witscripts,
|
||||||
&remote_per_commit,
|
&remote_per_commit,
|
||||||
&option_static_remotekey))
|
&option_static_remotekey))
|
||||||
bad_req(conn, c, msg_in);
|
return bad_req(conn, c, msg_in);
|
||||||
tx->chainparams = c->chainparams;
|
tx->chainparams = c->chainparams;
|
||||||
|
|
||||||
/* Basic sanity checks. */
|
/* Basic sanity checks. */
|
||||||
|
|||||||
Reference in New Issue
Block a user