[SSSD] [PATCHES] a few basic fixed that caused segfaults/aborts