summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-02-14 22:55:46 +0000
committerJeremy Allison <jra@samba.org>2003-02-14 22:55:46 +0000
commit8fc1f1aead6db996a6d96efdc5f81779afc9c8d2 (patch)
tree2c6e40b3786b45c5d67814bdf89283afab6d58dc /source3/auth
parent89d480a93318d7055a8b710ac5a6437dd7da7575 (diff)
downloadsamba-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/auth')
-rw-r--r--source3/auth/auth_winbind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c
index e45e2c879f..5e1567d3c1 100644
--- a/source3/auth/auth_winbind.c
+++ b/source3/auth/auth_winbind.c
@@ -36,8 +36,8 @@ static NTSTATUS get_info3_from_ndr(TALLOC_CTX *mem_ctx, struct winbindd_response
if (!prs_init(&ps, len, mem_ctx, UNMARSHALL)) {
return NT_STATUS_NO_MEMORY;
}
- prs_append_data(&ps, info3_ndr, len);
- ps.data_offset = 0;
+ prs_copy_data_in(&ps, info3_ndr, len);
+ prs_set_offset(&ps,0);
if (!net_io_user_info3("", info3, &ps, 1, 3)) {
DEBUG(2, ("get_info3_from_ndr: could not parse info3 struct!\n"));
return NT_STATUS_UNSUCCESSFUL;