diff options
Diffstat (limited to 'server/confdb')
-rw-r--r-- | server/confdb/confdb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c index 8eefcfb6f..8b8dc7463 100644 --- a/server/confdb/confdb.c +++ b/server/confdb/confdb.c @@ -709,6 +709,10 @@ int confdb_get_domain(struct confdb_ctx *cdb, } domain = talloc_zero(mem_ctx, struct sss_domain_info); + if (!domain) { + ret = ENOMEM; + goto done; + } tmp = ldb_msg_find_attr_as_string(res->msgs[0], "cn", NULL); if (!tmp) { |