mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-28 04:00:31 +01:00
platform: fix to_string() functions for IPv6 tunnels
We can hit an assertion at trace log level when printing IPv6 tunnel links, because the buffer for the local and remote addresses is not big enough. Increase the buffer size. Fixes:32f6e1ef2e('platform: add IP6TNL links support') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2063 (cherry picked from commiteb620e0e7e) (cherry picked from commitfc09f55ef5) (cherry picked from commit95ef14b44e) (cherry picked from commit0e20b52449)
This commit is contained in:
parent
d8e729e540
commit
904dc9c466
1 changed files with 2 additions and 2 deletions
|
|
@ -6397,9 +6397,9 @@ nm_platform_lnk_infiniband_to_string(const NMPlatformLnkInfiniband *lnk, char *b
|
|||
const char *
|
||||
nm_platform_lnk_ip6tnl_to_string(const NMPlatformLnkIp6Tnl *lnk, char *buf, gsize len)
|
||||
{
|
||||
char str_local[30];
|
||||
char str_local[30 + NM_INET_ADDRSTRLEN];
|
||||
char str_local1[NM_INET_ADDRSTRLEN];
|
||||
char str_remote[30];
|
||||
char str_remote[30 + NM_INET_ADDRSTRLEN];
|
||||
char str_remote1[NM_INET_ADDRSTRLEN];
|
||||
char str_ttl[30];
|
||||
char str_tclass[30];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue