s3:net registry import: fix the return code when transaction commit fails
authorMichael Adam <obnox@samba.org>
Tue, 26 Jun 2012 13:11:22 +0000 (15:11 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 26 Jun 2012 17:57:19 +0000 (19:57 +0200)
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

source3/utils/net_registry.c

index 5d93a71390798bb9dc6f0ec235eee318815c465d..803e12181b6843ba2681fed81f12540d360323b5 100644 (file)
@@ -1303,7 +1303,7 @@ static int net_registry_import(struct net_context *c, int argc,
                if (!W_ERROR_IS_OK(werr)) {
                        d_printf("Failed to commit transaction on regdb: %s\n",
                                 win_errstr(werr));
-                       goto done;
+                       ret = -1;
                }
        }