diff options
author | Jeremy Allison <jra@samba.org> | 2003-02-14 22:55:46 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-02-14 22:55:46 +0000 |
commit | 8fc1f1aead6db996a6d96efdc5f81779afc9c8d2 (patch) | |
tree | 2c6e40b3786b45c5d67814bdf89283afab6d58dc /source3/nsswitch | |
parent | 89d480a93318d7055a8b710ac5a6437dd7da7575 (diff) | |
download | samba-8fc1f1aead6db996a6d96efdc5f81779afc9c8d2.tar.gz samba-8fc1f1aead6db996a6d96efdc5f81779afc9c8d2.tar.bz2 samba-8fc1f1aead6db996a6d96efdc5f81779afc9c8d2.zip |
Ensure that only parse_prs.c access internal members of the prs_struct.
Needed to move to disk based i/o later.
Jeremy.
(This used to be commit a823fee5b41a5b6cd4ef05aa1f85f7725bd272a5)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_pam.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c index f3237f08da..e24afbabd6 100644 --- a/source3/nsswitch/winbindd_pam.c +++ b/source3/nsswitch/winbindd_pam.c @@ -42,11 +42,12 @@ static NTSTATUS append_info3_as_ndr(TALLOC_CTX *mem_ctx, } size = prs_data_size(&ps); - state->response.extra_data = memdup(prs_data_p(&ps), size); + state->response.extra_data = malloc(size); if (!state->response.extra_data) { prs_mem_free(&ps); return NT_STATUS_NO_MEMORY; } + prs_copy_all_data_out(state->response.extra_data, &ps); state->response.length += size; prs_mem_free(&ps); return NT_STATUS_OK; |