Fix typo and purify logic in b_sock.c
1 file changed