Skip to content

Commit

Permalink
pay: fix #3613; string output must be quoted
Browse files Browse the repository at this point in the history
`json_add_member` requires quotes for string types

Changelog-Fixed: `pay` would crash on expired waits with tried routes
  • Loading branch information
niftynei authored and cdecker committed Apr 8, 2020
1 parent 3124d43 commit b51772f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static struct command_result *waitsendpay_expired(struct command *cmd,
for (size_t i = 0; i < tal_count(pc->ps->attempts); i++) {
json_object_start(data, NULL);
if (pc->ps->attempts[i].route)
json_add_member(data, "route", false, "%s",
json_add_member(data, "route", true, "%s",
pc->ps->attempts[i].route);
json_out_add_splice(data->jout, "failure",
pc->ps->attempts[i].failure);
Expand Down

0 comments on commit b51772f

Please sign in to comment.