From ea36245ebeb26e5bc98983c817fb023cd8a8d50f Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 6 Oct 2010 20:45:36 +0200 Subject: s4:dsdb/common/util_samr.c - use an LDB constant for result checking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Thu Oct 7 07:40:31 UTC 2010 on sn-devel-104 --- source4/dsdb/common/util_samr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') 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; -- cgit