Test for non-NULL 'ai_canonname', as per MSDN recommendation.