diff options
author | Jeremy Allison <jra@samba.org> | 2003-02-14 23:04:03 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-02-14 23:04:03 +0000 |
commit | 4cd6e31bd364270580f2907fbc5669bf29d09578 (patch) | |
tree | 4a364bf23c3275d74bb3b8490d9a21a14a1f59cd /source3/nsswitch | |
parent | 4f6c2ab8957c39119afecc33718d457fa59bd874 (diff) | |
download | samba-4cd6e31bd364270580f2907fbc5669bf29d09578.tar.gz samba-4cd6e31bd364270580f2907fbc5669bf29d09578.tar.bz2 samba-4cd6e31bd364270580f2907fbc5669bf29d09578.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 4c3ee228fcdb089eaeead95e79532a9cf6cb0de6)
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; |