[SSSD] [PATCH] Fix segfault on unknown user/domain
Simo Sorce
ssorce at redhat.com
Mon Nov 9 17:16:43 UTC 2009
On Mon, 2009-11-09 at 12:14 -0500, Stephen Gallagher wrote:
> The root cause was that preq->domain was set to NULL, because it
> couldn't locate a corresponding domain for this user.
>
> I have reordered this conditional such that we first test that we are
> in
> the PAM_SUCCESS case of an SSS_PAM_AUTHENTICATE call. In this
> situation,
> preq->domain is guaranteed to be valid.
>
> I could have added an explicit check, but it seemed wasteful.
Ack.
Simo.
--
Simo Sorce * Red Hat, Inc * New York
More information about the sssd-devel
mailing list