Repository navigation
Commit 8c8fdf4
dualopend: initialize state->reconnected on startup
state->reconnected was only set to true after do_reconnect_dance(),
so a fresh dualopend never wrote it. A commitment_signed arriving
out of turn in the main loop made handle_commit_signed() read an
uninitialized bool, which UBSan flags as a load of an invalid bool
value.
Default it to false, so an out-of-turn commitment_signed is always
rejected unless we really reconnected.
Changelog-None
Signed-off-by: Erick Cestari <erickcestari03@gmail.com>1 parent 5685c9a commit 8c8fdf4
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4410 | 4410 | | |
4411 | 4411 | | |
4412 | 4412 | | |
4413 | | - | |
| 4413 | + | |
4414 | 4414 | | |
| 4415 | + | |
4415 | 4416 | | |
4416 | 4417 | | |
4417 | 4418 | | |
| |||
0 commit comments