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:
Matt Morehouse 2023-04-12 14:05:19 -05:00 committed by Christian Decker
parent 45cb2b149c
commit 3edb092bd8

View file

@ -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;