From 3705119bb06123068cb8f3780342fd4e6e501b08 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 26 Jun 2012 15:13:28 +0200 Subject: s3:net registry import: add an assert Pair-Programmed-With: Gergor Beck --- source3/utils/net_registry.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') 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", -- cgit