d5f58367fb
checking the returned oldlen: when ENOMEM is due to the supplied buffer being too short the return oldlen is equal to buffer size. Without this additional check sockstat gets stuck in loop leaking the memory if the returned ENOMEM was due the exceeded memorylocked limit. This is easily can be observed running `limits -l 1k sockstat'. Submitted by: Andrey Zonov <andrey zonov org> MFC after: 1 week |
||
---|---|---|
.. | ||
Makefile | ||
sockstat.1 | ||
sockstat.c |