]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
getpeername() returns with no error but didn't fill struct sockaddr
authorHajimu UMEMOTO <ume@FreeBSD.org>
Wed, 22 Jan 2003 13:13:13 +0000 (13:13 +0000)
committerHajimu UMEMOTO <ume@FreeBSD.org>
Wed, 22 Jan 2003 13:13:13 +0000 (13:13 +0000)
commit56b3905f15ae0ef22a50070c5fbc26d8abb0599a
tree421b481dd91bf60b8165f5cfe634e3e456172088
parent5da7cece45f11f0ffc3957e4770b2d55f869ad4d
getpeername() returns with no error but didn't fill struct sockaddr
correctly against PF_LOCAL.  It seems that the test always fails then
sockaddr was not filled.  So, I added else clause for workaround.
I doubt if it is right fix.  However, it is better than nothing.  I
found that NetBSD has same potential problem.  But, fortunately,
NetBSD has equivalent else clause.

MFC after: 1 week
sys/kern/uipc_usrreq.c