]> git.proxmox.com Git - mirror_iproute2.git/commit - misc/ss.c
ss: fix crash when dump stats from /proc with '-p'
authorVadim Kochan <vadim4j@gmail.com>
Tue, 21 Jul 2015 17:53:19 +0000 (10:53 -0700)
committerStephen Hemminger <shemming@brocade.com>
Tue, 21 Jul 2015 17:53:19 +0000 (10:53 -0700)
commit99bb68ff666ce493cc536ee0818f156d6699168e
tree0524d3ddc6d2ee6f9b65f6ce689c67e45e420432
parent92de1c2c820816801681d76f5de7137a2b5996df
ss: fix crash when dump stats from /proc with '-p'

It really partially reverts:

    ec4d0d8a9def35 (ss: Replace unixstat struct by new sockstat struct)

but adds few fields (name & peer_name) from removed unixstat to sockstat struct to easy
return original code.

Fixes: ec4d0d8a9def35 (ss: Replace unixstat struct by new sockstat struct)
Reported-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
misc/ss.c