diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-09-11 12:12:09 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-09-11 12:14:34 -0400 |
commit | 927d3062d150e479e5167836fb2da4c46cd81985 (patch) | |
tree | 27912f41266d4e848474fe4f0e0039d9733d705c /server/monitor | |
parent | 4595840b5b6bd76022da76b77d5e7eb0d1566380 (diff) | |
download | sssd-927d3062d150e479e5167836fb2da4c46cd81985.tar.gz sssd-927d3062d150e479e5167836fb2da4c46cd81985.tar.bz2 sssd-927d3062d150e479e5167836fb2da4c46cd81985.zip |
Fix first-time confdb generation
We were talloc_free()-ing the cdb_file string too early.
Diffstat (limited to 'server/monitor')
-rw-r--r-- | server/monitor/monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c index 6cf077db..3a7c4f21 100644 --- a/server/monitor/monitor.c +++ b/server/monitor/monitor.c @@ -1410,7 +1410,6 @@ static errno_t load_configuration(TALLOC_CTX *mem_ctx, DEBUG(0,("The confdb initialization failed\n")); goto done; } - talloc_free(cdb_file); /* Initialize the CDB from the configuration file */ ret = confdb_test(ctx->cdb); @@ -1439,6 +1438,7 @@ static errno_t load_configuration(TALLOC_CTX *mem_ctx, DEBUG(0, ("Fatal error initializing confdb\n")); goto done; } + talloc_zfree(cdb_file); ret = confdb_init_db(config_file, ctx->cdb); if (ret != EOK) { |