s3:net registry import: add an assert
authorMichael Adam <obnox@samba.org>
Tue, 26 Jun 2012 13:13:28 +0000 (15:13 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 26 Jun 2012 17:57:19 +0000 (19:57 +0200)
Pair-Programmed-With: Gergor Beck <gbeck@sernet.de>

source3/utils/net_registry.c

index d12e5879a553685e3c19674cdd4bbc55c2247d07..44ebef5bf27860a6cda4b2dc3b5274e312dbd264 100644 (file)
@@ -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",