s4:librpc/rpc: don't mix up paylod ndr flags with the dcerpc layer
authorStefan Metzmacher <metze@samba.org>
Tue, 3 Apr 2012 17:55:42 +0000 (19:55 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 3 Apr 2012 18:02:10 +0000 (20:02 +0200)
If the transfer syntax is NDR64, it's only for the payload not
for the dcerpc pdus.

metze

source4/librpc/rpc/dcerpc.c

index ebf6f33aa5f21329f892d70a76e7fd1a283e1045..5d286c83c06f0e3dd0b35cdcec651eba0fc45560 100644 (file)
@@ -674,7 +674,7 @@ static NTSTATUS ncacn_pull(struct dcecli_connection *c, DATA_BLOB *blob, TALLOC_
        struct ndr_pull *ndr;
        enum ndr_err_code ndr_err;
 
-       ndr = ndr_pull_init_flags(c, blob, mem_ctx);
+       ndr = ndr_pull_init_blob(blob, mem_ctx);
        if (!ndr) {
                return NT_STATUS_NO_MEMORY;
        }