mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +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:
parent
66f59659a7
commit
632b42da40
@ -1007,7 +1007,7 @@ static struct io_plan *handle_sign_remote_commitment_tx(struct io_conn *conn,
|
||||
&output_witscripts,
|
||||
&remote_per_commit,
|
||||
&option_static_remotekey))
|
||||
bad_req(conn, c, msg_in);
|
||||
return bad_req(conn, c, msg_in);
|
||||
tx->chainparams = c->chainparams;
|
||||
|
||||
/* Basic sanity checks. */
|
||||
|
Loading…
Reference in New Issue
Block a user