netstat: fix handling of large socket numbers
authorMike Frysinger <vapier@gentoo.org>
Sat, 9 Apr 2011 13:52:05 +0000 (13:52 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 9 Apr 2011 13:52:05 +0000 (13:52 +0000)
commit74b2b5487338d65c468f76a7530c8c38692b56a1
treeafae7dc3e968b9f064d250bc5e4cbd51262e5543
parent8022436648fc84b5015dec20339ddd58b9fbfcdf
netstat: fix handling of large socket numbers

The kernel really only treats sockets with a value of -1 as an error.
The rest are an unsigned quantity.  So tweak the nestat lookup to use
an unsigned value.

patch based on Antonio Galea's work in Debian bug 345331
netstat.c