summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-26 15:11:22 +0200
committerMichael Adam <obnox@samba.org>2012-06-26 19:57:19 +0200
commitd5ab3282e454a4581f77250e54ba11761a9c2a63 (patch)
treee29ab1802c6511d439072800a2548800117e7a15
parenta3ed47a09bfaf3bf100547a4d97e9d8573382a3d (diff)
downloadsamba-d5ab3282e454a4581f77250e54ba11761a9c2a63.tar.gz
samba-d5ab3282e454a4581f77250e54ba11761a9c2a63.tar.bz2
samba-d5ab3282e454a4581f77250e54ba11761a9c2a63.zip
s3:net registry import: fix the return code when transaction commit fails
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
-rw-r--r--source3/utils/net_registry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index 5d93a71390..803e12181b 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;
}
}