summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-26 15:13:28 +0200
committerMichael Adam <obnox@samba.org>2012-06-26 19:57:19 +0200
commit3705119bb06123068cb8f3780342fd4e6e501b08 (patch)
treecc023a596d24fcd3e9177dad0372ff43169d54ed
parent8bf08505c1483d0d3a49f703edbed2d31eea6f1f (diff)
downloadsamba-3705119bb06123068cb8f3780342fd4e6e501b08.tar.gz
samba-3705119bb06123068cb8f3780342fd4e6e501b08.tar.bz2
samba-3705119bb06123068cb8f3780342fd4e6e501b08.zip
s3:net registry import: add an assert
Pair-Programmed-With: Gergor Beck <gbeck@sernet.de>
-rw-r--r--source3/utils/net_registry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index d12e5879a5..44ebef5bf2 100644
--- a/source3/utils/net_registry.c
+++ b/source3/utils/net_registry.c
@@ -1301,6 +1301,8 @@ static int net_registry_import(struct net_context *c, int argc,
goto done;
}
+ SMB_ASSERT(ret == 0);
+
werr = regdb_transaction_commit();
if (!W_ERROR_IS_OK(werr)) {
d_printf("Failed to commit transaction on regdb: %s\n",