Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
sssd.13028
0006-Solve-segfault-in-sss_cache-command-invoke...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0006-Solve-segfault-in-sss_cache-command-invoked-on-speci.patch of Package sssd.13028
From c70e0a877a278e897270f5fd192935b67d2d7752 Mon Sep 17 00:00:00 2001 From: HouzuoGuo <guohouzuo@gmail.com> Date: Fri, 12 Jan 2018 14:23:50 +0100 Subject: [PATCH 6/7] Solve segfault in sss_cache command invoked on specific domain name --- src/tools/sss_cache.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c index 88895e8de..6ea266afc 100644 --- a/src/tools/sss_cache.c +++ b/src/tools/sss_cache.c @@ -130,6 +130,13 @@ int main(int argc, const char *argv[]) for (dinfo = tctx->domains; dinfo; dinfo = get_next_domain(dinfo, SSS_GND_DESCEND)) { + sysdb = dinfo->sysdb; + if (sysdb == NULL) { + DEBUG(SSSDBG_TRACE_FUNC, + "Skipping domain %s.\n", dinfo->name); + continue; + } + if (!IS_SUBDOMAIN(dinfo)) { /* Update list of subdomains for this domain */ ret = sysdb_update_subdomains(dinfo); @@ -139,7 +146,6 @@ int main(int argc, const char *argv[]) } } - sysdb = dinfo->sysdb; /* Update filters for each domain */ ret = update_all_filters(tctx, dinfo); if (ret != EOK) { -- 2.15.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor