make sure the session->netc is valid