1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-14 00:58:38 +03:00

libnetapi: don't reset the error code in NetUserAdd_r if the operation failed.

Guenther
(This used to be commit 9edb067f62b1e36f1da461b3eb09cb123d2089dd)
This commit is contained in:
Günther Deschner 2008-04-13 19:11:01 +02:00
parent 5647deccb1
commit dcb9264edf

View File

@ -320,12 +320,8 @@ WERROR NetUserAdd_r(struct libnetapi_ctx *ctx,
goto done;
failed:
status = rpccli_samr_DeleteUser(pipe_cli, ctx,
&user_handle);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
goto done;
}
rpccli_samr_DeleteUser(pipe_cli, ctx,
&user_handle);
done:
if (!cli) {