mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-01-07 04:54:44 +00:00
Merge branch 'master' into net-next
This commit is contained in:
commit
f2df31170f
@ -3008,10 +3008,12 @@ static int unix_show_sock(const struct sockaddr_nl *addr, struct nlmsghdr *nlh,
|
||||
|
||||
memcpy(name, RTA_DATA(tb[UNIX_DIAG_NAME]), len);
|
||||
name[len] = '\0';
|
||||
if (name[0] == '\0')
|
||||
for (int i = 0; i < len; i++)
|
||||
if (name[0] == '\0') {
|
||||
int i;
|
||||
for (i = 0; i < len; i++)
|
||||
if (name[i] == '\0')
|
||||
name[i] = '@';
|
||||
}
|
||||
stat.name = &name[0];
|
||||
memcpy(stat.local.data, &stat.name, sizeof(stat.name));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user