mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
wireaddr: Avoid memory corruption in fmt_wireaddr_without_port()
This commit is contained in:
parent
fab3b214b4
commit
3abd9ad4f6
@ -207,7 +207,7 @@ REGISTER_TYPE_TO_STRING(wireaddr_internal, fmt_wireaddr_internal);
|
||||
char *fmt_wireaddr_without_port(const tal_t * ctx, const struct wireaddr *a)
|
||||
{
|
||||
char *ret, *hex;
|
||||
char addrstr[LARGEST_ADDRLEN];
|
||||
char addrstr[INET6_ADDRSTRLEN];
|
||||
|
||||
switch (a->type) {
|
||||
case ADDR_TYPE_IPV4:
|
||||
|
Loading…
Reference in New Issue
Block a user