Skip to content

Commit

Permalink
rpc listprivateinbound: validate remote alias is set before using
Browse files Browse the repository at this point in the history
  • Loading branch information
endothermicdev committed Aug 29, 2023
1 parent 8809194 commit d68b61e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lightningd/gossip_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,10 @@ static struct command_result *json_listprivateinbound(struct command *cmd,
json_add_short_channel_id(response,
"short_channel_id",
&c->private_update->scid);
json_add_short_channel_id(response,
"remote_alias",
c->alias[REMOTE]);
if (c->alias[REMOTE])
json_add_short_channel_id(response,
"remote_alias",
c->alias[REMOTE]);
json_add_u32(response, "fee_base",
c->private_update->fee_base);
json_add_u32(response, "fee_ppm",
Expand Down

0 comments on commit d68b61e

Please sign in to comment.