Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
sssd.16660
0016-Solve-segfault-in-sss_cache-command-invoke...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0016-Solve-segfault-in-sss_cache-command-invoked-on-speci.patch of Package sssd.16660
From 37801081dae5557e7b0b8a67be92629625200293 Mon Sep 17 00:00:00 2001 From: HouzuoGuo <guohouzuo@gmail.com> Date: Fri, 12 Jan 2018 14:23:50 +0100 Subject: [PATCH] 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 8a40b38c0..1600b0133 100644 --- a/src/tools/sss_cache.c +++ b/src/tools/sss_cache.c @@ -156,6 +156,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, tctx->confdb); @@ -165,7 +172,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.27.0
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