Skip to content

Commit

Permalink
lightningd: don't leak address for printing.
Browse files Browse the repository at this point in the history
Not really a leak, but it would last as long as the peer.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Feb 26, 2022
1 parent 899f548 commit b67329b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/peer_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ void peer_connected(struct lightningd *ld, const u8 *msg, int peer_fd)
hook_payload->remote_addr->type == ADDR_TYPE_IPV4 ||
hook_payload->remote_addr->type == ADDR_TYPE_IPV6)) {
log_info(ld->log, "Peer says it sees our address as: %s",
fmt_wireaddr(peer, hook_payload->remote_addr));
fmt_wireaddr(tmpctx, hook_payload->remote_addr));
}

plugin_hook_call_peer_connected(ld, hook_payload);
Expand Down

0 comments on commit b67329b

Please sign in to comment.