Fix sockaddr assignment