[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Thu Jul 8 05:34:46 MDT 2010


The branch, master has been updated
       via  328f3ca... s3: Slightly simplify make_server_info_pw
      from  b595469... s3-rpcclient: add another usage display to sign and seal commands.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 328f3ca103e8cd8d73e591dccce6d4dd0fc30b48
Author: Volker Lendecke <vl at samba.org>
Date:   Thu Jul 8 13:32:48 2010 +0200

    s3: Slightly simplify make_server_info_pw

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

Summary of changes:
 source3/auth/auth_util.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 837e58b..32f9d13 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -609,16 +609,14 @@ NTSTATUS make_server_info_pw(struct auth_serversupplied_info **server_info,
 
 	status = samu_to_SamInfo3(result, sampass, global_myname(),
 				  &result->info3, &result->extra);
+	TALLOC_FREE(sampass);
 	if (!NT_STATUS_IS_OK(status)) {
 		DEBUG(10, ("Failed to convert samu to info3: %s\n",
 			   nt_errstr(status)));
-		TALLOC_FREE(sampass);
 		TALLOC_FREE(result);
 		return status;
 	}
 
-	TALLOC_FREE(sampass);
-
 	result->unix_name = talloc_strdup(result, unix_username);
 	result->sanitized_username = sanitize_username(result, unix_username);
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list