From d5ab3282e454a4581f77250e54ba11761a9c2a63 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 26 Jun 2012 15:11:22 +0200 Subject: [PATCH] s3:net registry import: fix the return code when transaction commit fails Pair-Programmed-With: Gregor Beck --- source3/utils/net_registry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c index 5d93a713907..803e12181b6 100644 --- a/source3/utils/net_registry.c +++ b/source3/utils/net_registry.c @@ -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; } } -- 2.11.4.GIT