4 Dec
2013
4 Dec
'13
8:50 a.m.
Emmanuel Dreyfus <manu@netbsd.org> wrote:
Indeed, when the auth process calls net_getunixname(), getsockname() fills the name buffer with garbage.
I checked with a test program: on a non open, or closed socket, getsockname() returns -1. However on a socket that was not bound, it returns 0 and fills the buffer with garbage. I suspect this is a kernel bug, but how do we reach that situation?
-- Emmanuel Dreyfus http://hcpnet.free.fr/pubz manu@netbsd.org