summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-16 17:50:16 +0100
committerVolker Lendecke <vl@samba.org>2010-11-17 12:17:22 +0100
commit5b0724d2289fbf14813636f1d5791ed76d56710e (patch)
treed92a889e539861909fb071ff46638a330753f12a /source3
parent3bfe6765b20904a47b81d9fa7df6d6385f144ceb (diff)
downloadsamba-5b0724d2289fbf14813636f1d5791ed76d56710e.tar.gz
samba-5b0724d2289fbf14813636f1d5791ed76d56710e.tar.bz2
samba-5b0724d2289fbf14813636f1d5791ed76d56710e.zip
s3: Remove a reference to "winbindd_cli_state" from append_info3_as_ndr
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_pam.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index ca509d2d48..71c9e951fd 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -122,7 +122,7 @@ static NTSTATUS append_info3_as_txt(TALLOC_CTX *mem_ctx,
}
static NTSTATUS append_info3_as_ndr(TALLOC_CTX *mem_ctx,
- struct winbindd_cli_state *state,
+ struct winbindd_response *resp,
struct netr_SamInfo3 *info3)
{
DATA_BLOB blob;
@@ -135,8 +135,8 @@ static NTSTATUS append_info3_as_ndr(TALLOC_CTX *mem_ctx,
return ndr_map_error2ntstatus(ndr_err);
}
- state->response->extra_data.data = blob.data;
- state->response->length += blob.length;
+ resp->extra_data.data = blob.data;
+ resp->length += blob.length;
return NT_STATUS_OK;
}
@@ -750,7 +750,8 @@ static NTSTATUS append_auth_data(struct winbindd_cli_state *state,
/* currently, anything from here on potentially overwrites extra_data. */
if (request_flags & WBFLAG_PAM_INFO3_NDR) {
- result = append_info3_as_ndr(state->mem_ctx, state, info3);
+ result = append_info3_as_ndr(state->mem_ctx, state->response,
+ info3);
if (!NT_STATUS_IS_OK(result)) {
DEBUG(10,("Failed to append INFO3 (NDR): %s\n",
nt_errstr(result)));