diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-08 13:32:48 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-08 13:34:16 +0200 |
commit | 328f3ca103e8cd8d73e591dccce6d4dd0fc30b48 (patch) | |
tree | 796978292ed5fe7f54ecf2b123a8cb0dba759aaa /source3 | |
parent | b595469bf7d6c1171d694366686d99de031c18b9 (diff) | |
download | samba-328f3ca103e8cd8d73e591dccce6d4dd0fc30b48.tar.gz samba-328f3ca103e8cd8d73e591dccce6d4dd0fc30b48.tar.bz2 samba-328f3ca103e8cd8d73e591dccce6d4dd0fc30b48.zip |
s3: Slightly simplify make_server_info_pw
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 837e58bb84..32f9d13aac 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); |