[SSSD] [PATCH] Fix incorrect allocation check