diff options
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc.c | 4 | ||||
-rw-r--r-- | source4/librpc/rpc/rpc_lsa.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 9e6c05e7ae..682735c000 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -798,6 +798,10 @@ NTSTATUS dcerpc_ndr_request(struct dcerpc_pipe *p, goto failed; } + if (pull->offset != pull->data_size) { + DEBUG(0,("Warning! %d unread bytes\n", pull->data_size - pull->offset)); + } + failed: ndr_push_free(push); return status; diff --git a/source4/librpc/rpc/rpc_lsa.c b/source4/librpc/rpc/rpc_lsa.c index bc2f00c33d..c5c18fe7ea 100644 --- a/source4/librpc/rpc/rpc_lsa.c +++ b/source4/librpc/rpc/rpc_lsa.c @@ -241,12 +241,12 @@ NTSTATUS dcerpc_CREATESECRET(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct return r->out.result; } -NTSTATUS dcerpc_OPENACCOUNT(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct OPENACCOUNT *r) +NTSTATUS dcerpc_lsa_OpenAccount(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct lsa_OpenAccount *r) { NTSTATUS status; - status = dcerpc_ndr_request(p, DCERPC_OPENACCOUNT, mem_ctx, - (ndr_push_fn_t) ndr_push_OPENACCOUNT, - (ndr_pull_fn_t) ndr_pull_OPENACCOUNT, + status = dcerpc_ndr_request(p, DCERPC_LSA_OPENACCOUNT, mem_ctx, + (ndr_push_fn_t) ndr_push_lsa_OpenAccount, + (ndr_pull_fn_t) ndr_pull_lsa_OpenAccount, r); if (!NT_STATUS_IS_OK(status)) { return status; |