Skip to content

Commit 3edb092

Browse files
morehousecdecker
authored andcommitted
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'
1 parent 45cb2b1 commit 3edb092

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/libplugin-pay.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2928,6 +2928,7 @@ static struct routehints_data *routehint_data_init(struct payment *p)
29282928
d->routehints = NULL;
29292929
d->base = 0;
29302930
d->offset = 0;
2931+
d->destination_reachable = false;
29312932
return d;
29322933
}
29332934
return d;

0 commit comments

Comments
 (0)