summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/usertools.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/usertools.c b/src/util/usertools.c
index 7675585ea..a3d210e36 100644
--- a/src/util/usertools.c
+++ b/src/util/usertools.c
@@ -70,7 +70,10 @@ int sss_names_init(TALLOC_CTX *mem_ctx, struct confdb_ctx *cdb,
talloc_set_destructor(ctx, sss_names_ctx_destructor);
tmpctx = talloc_new(NULL);
- if (tmpctx == NULL) goto done;
+ if (tmpctx == NULL) {
+ ret = ENOMEM;
+ goto done;
+ }
conf_path = talloc_asprintf(tmpctx, CONFDB_DOMAIN_PATH_TMPL, domain);
if (conf_path == NULL) {