mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
paymod: Always initialize p->route
We're using it in a couple of places to see if we even performed the attempt, so we need to make sure it's initialized.
This commit is contained in:
committed by
Rusty Russell
parent
899a2e64b0
commit
6ada56ca7c
@@ -25,6 +25,7 @@ struct payment *payment_new(tal_t *ctx, struct command *cmd,
|
|||||||
p->failreason = NULL;
|
p->failreason = NULL;
|
||||||
p->getroute->riskfactorppm = 10000000;
|
p->getroute->riskfactorppm = 10000000;
|
||||||
p->abort = false;
|
p->abort = false;
|
||||||
|
p->route = NULL;
|
||||||
|
|
||||||
/* Copy over the relevant pieces of information. */
|
/* Copy over the relevant pieces of information. */
|
||||||
if (parent != NULL) {
|
if (parent != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user