r26053: IPC_RAP: don't use ndr_pull_save anymore
authorStefan Metzmacher <metze@samba.org>
Tue, 20 Nov 2007 10:08:24 +0000 (11:08 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:45:48 +0000 (05:45 +0100)
metze

source/ntvfs/ipc/ipc_rap.c

index 2a9d66cae8c6f53a93e34fb9aef4f103f5d7d1f2..d8e9812dd8ce01bf7e02ac7096727230b44d37b6 100644 (file)
@@ -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;
                }