diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-29 17:03:51 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-07-07 10:29:56 +0200 |
commit | ee71456b887c82ff6aa2581cbb6ddb3607bba51e (patch) | |
tree | 1e44cd09e418df736388f64598170a02c75b94a9 /src/tools/sss_seed.c | |
parent | 6d66c2c465861ff2558f2574eddf8315628ccc6d (diff) | |
download | sssd-ee71456b887c82ff6aa2581cbb6ddb3607bba51e.tar.gz sssd-ee71456b887c82ff6aa2581cbb6ddb3607bba51e.tar.xz sssd-ee71456b887c82ff6aa2581cbb6ddb3607bba51e.zip |
SYSDB: Fix small issues during db upgrade
This patch fixes several issues introduced during the recent sysdb
upgrade:
1) The upgrade code often accesses sysdb->ldb, but at this point,
the ldb pointer might not be initialized yet. As a kind of an ugly,
yet functional workaround, we pass in the ldb pointer that we
received from the caller as part of the sysdb structure.
2) the version that sysdb_domain_cache_upgrade() returns is not a
talloc pointer, so the upgrade was crashing when we tried to steal
it.
3) the ldb pointer sysdb_cache_connect() returns was kept allocated
on the tmp_ctx. We need to steal it instead.
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/tools/sss_seed.c')
0 files changed, 0 insertions, 0 deletions