summaryrefslogtreecommitdiff
path: root/source4/dsdb/common
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r--source4/dsdb/common/util_samr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/util_samr.c b/source4/dsdb/common/util_samr.c
index dbf71949a0..85bfbfd75e 100644
--- a/source4/dsdb/common/util_samr.c
+++ b/source4/dsdb/common/util_samr.c
@@ -216,7 +216,7 @@ NTSTATUS dsdb_add_user(struct ldb_context *ldb,
if (samdb_msg_add_uint(ldb, tmp_ctx, msg,
"userAccountControl",
- user_account_control) != 0) {
+ user_account_control) != LDB_SUCCESS) {
ldb_transaction_cancel(ldb);
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;