summaryrefslogtreecommitdiff
path: root/source3/passdb/account_pol.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-10-06 21:29:04 +0200
committerMichael Adam <obnox@samba.org>2011-10-11 15:51:00 +0200
commit67600117610eda2bd7ad2802bcc7a9147720e659 (patch)
tree1937d78a7dff356d404eb4bb9ba6109a408c4a41 /source3/passdb/account_pol.c
parentc9bc1e492404077c6b40b5cefe33e859503a4227 (diff)
downloadsamba-67600117610eda2bd7ad2802bcc7a9147720e659.tar.gz
samba-67600117610eda2bd7ad2802bcc7a9147720e659.tar.bz2
samba-67600117610eda2bd7ad2802bcc7a9147720e659.zip
s3:dbwrap: change dbwrap_store_uint32() to NTSTATUS return type
for consistency and better error propagation Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Oct 11 15:51:00 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/passdb/account_pol.c')
-rw-r--r--source3/passdb/account_pol.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/passdb/account_pol.c b/source3/passdb/account_pol.c
index bd8cdf725f..a32d07517d 100644
--- a/source3/passdb/account_pol.c
+++ b/source3/passdb/account_pol.c
@@ -265,8 +265,10 @@ bool init_account_policy(void)
}
if (version != DATABASE_VERSION) {
- if (dbwrap_store_uint32(db, vstring, DATABASE_VERSION) != 0) {
- DEBUG(0, ("dbwrap_store_uint32 failed\n"));
+ status = dbwrap_store_uint32(db, vstring, DATABASE_VERSION);
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0, ("dbwrap_store_uint32 failed: %s\n",
+ nt_errstr(status)));
goto cancel;
}