Fixed typo in the socket3 functions.