diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-12 12:01:01 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-19 14:04:25 +0200 |
commit | d2e8ad3f8fcb3dcabb56ce9b5e7fada6800cfc77 (patch) | |
tree | 92b3b609fcedd6f086491e548da3f2412700f095 /src/util/domain_info_utils.c | |
parent | 8164714c5c1ca06ed0435db281e0dbe1db80850c (diff) | |
download | sssd-d2e8ad3f8fcb3dcabb56ce9b5e7fada6800cfc77.tar.gz sssd-d2e8ad3f8fcb3dcabb56ce9b5e7fada6800cfc77.tar.bz2 sssd-d2e8ad3f8fcb3dcabb56ce9b5e7fada6800cfc77.zip |
LDAP: do not invalidate pointer with realloc while processing ghost users
https://fedorahosted.org/sssd/ticket/1799
One peculiarity of the sysdb_attrs_get_el interface is that if the
attribute does not exist, then the attrs array is reallocated and the
element is created. But in case other pointers are already pointing
into the array, the realloc might invalidate them.
Such case was in the sdap_process_ghost_members function where if
the group had no members, the "gh" pointer requested earlier might have
been invalidated by the realloc in order to create the member element.
Diffstat (limited to 'src/util/domain_info_utils.c')
0 files changed, 0 insertions, 0 deletions