summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/sysdb_ops.c')
-rw-r--r--src/db/sysdb_ops.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 91fa21e96..33abd06b2 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -1568,7 +1568,14 @@ int sysdb_store_user(struct sysdb_ctx *sysdb,
ret = sysdb_add_user(sysdb, name, uid, gid, gecos,
homedir, shell, attrs, cache_timeout, now);
}
- goto done;
+
+ /* Handle the result of sysdb_add_user */
+ if (ret == EOK) {
+ goto done;
+ } else {
+ DEBUG(SSSDBG_OP_FAILURE, ("Could not add user\n"));
+ goto fail;
+ }
}
/* the user exists, let's just replace attributes when set */