Fix crash socket.getaddrinfo with wrong options. #364