[FreeBSD6.1-RELEASE]problem about soisconnected() in uipc_socket2.c

Blue Susan.Lan at zyxel.com.tw
Tue Jun 13 07:16:06 UTC 2006


I have found a questionable code in soisconnected() function in 
uipc_socket2.c. In the very beginning, the SOCK_LOCK() would lock the 
socket. However, in line 127, it unlocks socket. I am wondering that 
SOCK_UNLOCK() should be called until all the socket's parameters are 
done. In my opinion, it should be located right before ACCEPT_UNLOCK().

Best regards,


More information about the freebsd-net mailing list