diff options
| author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-11-06 08:48:05 +0100 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-11-11 18:05:28 +0100 |
| commit | d4ff84434265dc959098ccfd4e8cd5d61d9052c9 (patch) | |
| tree | 98931d534af90dbea59d5a6a65eb8788232a4bc4 /src/config/SSSDConfigTest.py | |
| parent | 356eef72675cde4dc5627c1e2f1a01846ec6eb1d (diff) | |
| download | sssd-d4ff84434265dc959098ccfd4e8cd5d61d9052c9.tar.gz sssd-d4ff84434265dc959098ccfd4e8cd5d61d9052c9.tar.xz sssd-d4ff84434265dc959098ccfd4e8cd5d61d9052c9.zip | |
sss_client: Fix underflow of active_threads
If the memory cache was not initialized and there was a failure in
initialisation of memory cache context (e.g. memory cache file
does not exist) then mc_context had to be destroyed to release
resources.
However the count of active threads in sss_cli_mc_ctx is already higher
than zero because current thread is working wih the mc_context.
But this counter was zero-ed with memset in sss_nss_mc_destroy_ctx
due to issue with initialisation of memory cache.
Then we have to decrease counter of active thread in function
sss_nss_mc_get_ctx because initialisation of mc failed.
And the result of this decrement is underflow of counter.
Related to:
https://fedorahosted.org/sssd/ticket/2726
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/config/SSSDConfigTest.py')
0 files changed, 0 insertions, 0 deletions
