mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
plugins: initialize destination_reachable
Otherwise we later copy the uninitialized memory to descendants, triggering undefined behavior: plugins/libplugin-pay.c:2882:34: runtime error: load of value 190, which is not a valid value for type 'bool'
This commit is contained in:
parent
45cb2b149c
commit
3edb092bd8
1 changed files with 1 additions and 0 deletions
|
@ -2928,6 +2928,7 @@ static struct routehints_data *routehint_data_init(struct payment *p)
|
|||
d->routehints = NULL;
|
||||
d->base = 0;
|
||||
d->offset = 0;
|
||||
d->destination_reachable = false;
|
||||
return d;
|
||||
}
|
||||
return d;
|
||||
|
|
Loading…
Add table
Reference in a new issue