1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3:net registry import: fix the return code when transaction commit fails

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
This commit is contained in:
Michael Adam 2012-06-26 15:11:22 +02:00
parent a3ed47a09b
commit d5ab3282e4

View 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;
}
}