s4:librpc/rpc: update alloc_hint for each fragment
authorStefan Metzmacher <metze@samba.org>
Tue, 17 Sep 2013 12:03:44 +0000 (14:03 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 Jan 2014 07:37:36 +0000 (08:37 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/librpc/rpc/dcerpc.c

index 186626df8209b5bafe808f5517f02dd29b775478..6c6d8f9a8eda40649047a488ad13c0f3eebb51ac 100644 (file)
@@ -1622,7 +1622,6 @@ static void dcerpc_ship_next_request(struct dcecli_connection *c)
        pkt.call_id = req->call_id;
        pkt.auth_length = 0;
        pkt.pfc_flags = 0;
-       pkt.u.request.alloc_hint = remaining;
        pkt.u.request.context_id = p->context_id;
        pkt.u.request.opnum = req->opnum;
 
@@ -1649,6 +1648,7 @@ static void dcerpc_ship_next_request(struct dcecli_connection *c)
                        last_frag = true;
                }
 
+               pkt.u.request.alloc_hint = remaining;
                pkt.u.request.stub_and_verifier.data = stub_data->data + 
                        (stub_data->length - remaining);
                pkt.u.request.stub_and_verifier.length = chunk;