[SSSD] [PATCH] Fix segfault on unknown user/domain

Stephen Gallagher sgallagh at redhat.com
Mon Nov 9 17:14:35 UTC 2009


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.

-- 
Stephen Gallagher
RHCE 804006346421761

Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Fix-segfault-on-unknown-user-domain.patch
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20091109/738a5690/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20091109/738a5690/attachment.sig>


More information about the sssd-devel mailing list