From 3ebf69a3a421a97aa0c27de1f90ea8bae64dc2b2 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 5 Aug 2012 23:26:35 +0200 Subject: SYSDB: Check the return value --- src/db/sysdb_ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/db') diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 6c1fc49b4..123230fe8 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); -- cgit