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

Stephen Gallagher sgallagh at redhat.com
Fri Jan 6 19:11:51 UTC 2012


On Wed, 2012-01-04 at 20:29 -0500, Stephen Gallagher wrote:
> 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.

Pushed to master.
-------------- 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/20120106/d6943fa5/attachment.sig>


More information about the sssd-devel mailing list