[SSSD] [PATCH] HBAC: create empty groups with one NULL element

Stephen Gallagher sgallagh at redhat.com
Thu Jan 5 01:29:48 UTC 2012


On Wed, 2012-01-04 at 22:12 +0100, Jakub Hrozek wrote:
> https://fedorahosted.org/sssd/ticket/1130
> 
> Some places if HBAC would create a "{ NULL }" array when there are no
> groups, some would just use a NULL pointer.
> 
> I think using the array is a safer solution because the loops we use
> usually just go through safely. Shanks found one such issue today where
> we would use a NULL pointer for the groups pointer in the srchost
> element and SSSD would crash.
> 
> The attached patch standartizes on using the single element arrays.

Ack.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120104/22ed69df/attachment.sig>


More information about the sssd-devel mailing list