mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +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:
committed by
Christian Decker
parent
45cb2b149c
commit
3edb092bd8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user