make sure the session->netc is not NULL