summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-08-05 23:26:35 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-08-06 14:48:33 +0200
commit3ebf69a3a421a97aa0c27de1f90ea8bae64dc2b2 (patch)
tree64ed534b72bd755e2e8f1b5e63c2892bb66b229d /src
parentd91efcea3cbdd7a617f35d3733c2fd14e7efeb86 (diff)
downloadsssd_unused-3ebf69a3a421a97aa0c27de1f90ea8bae64dc2b2.zip
sssd_unused-3ebf69a3a421a97aa0c27de1f90ea8bae64dc2b2.tar.gz
sssd_unused-3ebf69a3a421a97aa0c27de1f90ea8bae64dc2b2.tar.xz
SYSDB: Check the return value
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb_ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 6c1fc49..123230f 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -983,6 +983,7 @@ int sysdb_add_user(struct sysdb_ctx *sysdb,
if (ret) goto done;
ret = sysdb_set_user_attr(sysdb, name, attrs, SYSDB_MOD_REP);
+ if (ret) goto done;
/* remove all ghost users */
filter = talloc_asprintf(tmp_ctx, "(|(%s=%s)", SYSDB_GHOST, name);