summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-20 11:08:24 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:48 +0100
commit981437efbc966c4bb0880fc0b02715d297ae6644 (patch)
tree6b5096c42bddd391a4946a84871e1bd66031f6aa /source4/ntvfs
parentf102173f2e0eced12ec4b9472c6136a234df6f1a (diff)
downloadsamba-981437efbc966c4bb0880fc0b02715d297ae6644.tar.gz
samba-981437efbc966c4bb0880fc0b02715d297ae6644.tar.bz2
samba-981437efbc966c4bb0880fc0b02715d297ae6644.zip
r26053: IPC_RAP: don't use ndr_pull_save anymore
metze (This used to be commit 590dd7f8a1ccba762dfcdfb036cf44306da2354a)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/ipc/ipc_rap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/ntvfs/ipc/ipc_rap.c b/source4/ntvfs/ipc/ipc_rap.c
index 2a9d66cae8..d8e9812dd8 100644
--- a/source4/ntvfs/ipc/ipc_rap.c
+++ b/source4/ntvfs/ipc/ipc_rap.c
@@ -273,10 +273,10 @@ static NTSTATUS _rap_netshareenum(struct rap_call *call)
for (r.out.count = 0; r.out.count < r.out.available; r.out.count++) {
int i = r.out.count;
- struct ndr_push_save data_save;
+ uint32_t offset_save;
struct rap_heap_save heap_save;
- ndr_push_save(call->ndr_push_data, &data_save);
+ offset_save = call->ndr_push_data->offset;
rap_heap_save(call->heap, &heap_save);
switch(r.in.level) {
@@ -305,7 +305,7 @@ static NTSTATUS _rap_netshareenum(struct rap_call *call)
buffer_overflow:
- ndr_push_restore(call->ndr_push_data, &data_save);
+ call->ndr_push_data->offset = offset_save;
rap_heap_restore(call->heap, &heap_save);
break;
}
@@ -355,10 +355,10 @@ static NTSTATUS _rap_netserverenum2(struct rap_call *call)
for (r.out.count = 0; r.out.count < r.out.available; r.out.count++) {
int i = r.out.count;
- struct ndr_push_save data_save;
+ uint32_t offset_save;
struct rap_heap_save heap_save;
- ndr_push_save(call->ndr_push_data, &data_save);
+ offset_save = call->ndr_push_data->offset;
rap_heap_save(call->heap, &heap_save);
switch(r.in.level) {
@@ -389,7 +389,7 @@ static NTSTATUS _rap_netserverenum2(struct rap_call *call)
buffer_overflow:
- ndr_push_restore(call->ndr_push_data, &data_save);
+ call->ndr_push_data->offset = offset_save;
rap_heap_restore(call->heap, &heap_save);
break;
}