1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-08 13:49:29 +03:00

s3: Slightly simplify make_server_info_pw

This commit is contained in:
Volker Lendecke
2010-07-08 13:32:48 +02:00
parent b595469bf7
commit 328f3ca103

View File

@ -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);