From 13e1628e34e4b4bc2320a87dd5ac888c70a63ddd Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 18 Aug 2015 15:15:44 +0000 Subject: UTIL: Convert domain->disabled into tri-state with domain states This is a first step towards making it possible for domain to be around, but not contacted by Data Provider. Also explicitly create domains as enabled, previously we only relied on talloc_zero marking dom->disabled as false. --- src/confdb/confdb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/confdb/confdb.c') diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index 3a8a1c01b..a207ce3ba 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -1342,6 +1342,8 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb, domain->has_views = false; domain->view_name = NULL; + domain->state = DOM_ENABLED; + *_domain = domain; ret = EOK; done: -- cgit