Re: [SSSD] [PATCH] NSS: Use sss_hash_create instead of destructor

2012-02-04 Thread Stephen Gallagher
On Fri, 2012-02-03 at 14:40 -0500, Simo Sorce wrote: > On Fri, 2012-02-03 at 15:10 +0100, Jakub Hrozek wrote: > > The hash table that is used to cache netgroups is allocated with > > low-level hash_create() and the freed in a destructor. The entries > > themselves are talloc pointers with destructo

Re: [SSSD] [PATCH] NSS: Use sss_hash_create instead of destructor

2012-02-03 Thread Simo Sorce
On Fri, 2012-02-03 at 15:10 +0100, Jakub Hrozek wrote: > The hash table that is used to cache netgroups is allocated with > low-level hash_create() and the freed in a destructor. The entries > themselves are talloc pointers with destructors which results in a > funky > behaviour during shutdown, of

[SSSD] [PATCH] NSS: Use sss_hash_create instead of destructor

2012-02-03 Thread Jakub Hrozek
The hash table that is used to cache netgroups is allocated with low-level hash_create() and the freed in a destructor. The entries themselves are talloc pointers with destructors which results in a funky behaviour during shutdown, often a segfault. I think the correct thing to do is just use sss_