ss: use rta_getattr_u32

This commit is contained in:
Stephen Hemminger 2013-02-26 17:32:58 -08:00
parent defd61ca91
commit 5048f9a0c5

View File

@ -2172,7 +2172,7 @@ static int unix_show_sock(struct nlmsghdr *nlh, struct filter *f)
sprintf(name, "*");
if (tb[UNIX_DIAG_PEER])
peer_ino = *(int *)RTA_DATA(tb[UNIX_DIAG_PEER]);
peer_ino = rta_getattr_u32(tb[UNIX_DIAG_PEER]);
else
peer_ino = 0;