summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-13 19:11:01 +0200
committerGünther Deschner <gd@samba.org>2008-04-13 19:11:01 +0200
commitdcb9264edf2ca9f08fafaeb0633d90e5ba0da2f3 (patch)
treee8dccdf8a21f92f4565ec744bb67e526ed62cef7
parent5647deccb1372b4ea478b34814e304ae8962f282 (diff)
downloadsamba-dcb9264edf2ca9f08fafaeb0633d90e5ba0da2f3.tar.gz
samba-dcb9264edf2ca9f08fafaeb0633d90e5ba0da2f3.tar.bz2
samba-dcb9264edf2ca9f08fafaeb0633d90e5ba0da2f3.zip
libnetapi: don't reset the error code in NetUserAdd_r if the operation failed.
Guenther (This used to be commit 9edb067f62b1e36f1da461b3eb09cb123d2089dd)
-rw-r--r--source3/lib/netapi/user.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index f0ce26bdf8..7b7cb9db05 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -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) {