summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-06 20:45:36 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-07 07:40:31 +0000
commitea36245ebeb26e5bc98983c817fb023cd8a8d50f (patch)
tree717e25ba63c8fb4eb38e3a18d092626d8e718006 /source4
parentc9da3122c845054e93f25c723f4dd9791bfbd853 (diff)
downloadsamba-ea36245ebeb26e5bc98983c817fb023cd8a8d50f.tar.gz
samba-ea36245ebeb26e5bc98983c817fb023cd8a8d50f.tar.bz2
samba-ea36245ebeb26e5bc98983c817fb023cd8a8d50f.zip
s4:dsdb/common/util_samr.c - use an LDB constant for result checking
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Oct 7 07:40:31 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4')
-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;