[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-880-g9edb067

Günther Deschner gd at samba.org
Sun Apr 13 17:13:00 GMT 2008


The branch, v3-2-test has been updated
       via  9edb067f62b1e36f1da461b3eb09cb123d2089dd (commit)
      from  6ec4a62b6d584f6745c3285474372f235614b598 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 9edb067f62b1e36f1da461b3eb09cb123d2089dd
Author: Günther Deschner <gd at samba.org>
Date:   Sun Apr 13 19:11:01 2008 +0200

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

-----------------------------------------------------------------------

Summary of changes:
 source/lib/netapi/user.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/user.c b/source/lib/netapi/user.c
index f0ce26b..7b7cb9d 100644
--- a/source/lib/netapi/user.c
+++ b/source/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) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list