summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/rpc_wkssvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc/rpc_wkssvc.c')
-rw-r--r--source4/librpc/rpc/rpc_wkssvc.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/source4/librpc/rpc/rpc_wkssvc.c b/source4/librpc/rpc/rpc_wkssvc.c
index 0549a35128..1a4b154842 100644
--- a/source4/librpc/rpc/rpc_wkssvc.c
+++ b/source4/librpc/rpc/rpc_wkssvc.c
@@ -1,4 +1,4 @@
-/* dcerpc client calls auto-generated by pidl */
+/* dcerpc client calls generated by pidl */
#include "includes.h"
@@ -6,13 +6,20 @@
NTSTATUS dcerpc_wks_QueryInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct wks_QueryInfo *r)
{
NTSTATUS status;
+
+ if (p->flags & DCERPC_DEBUG_PRINT_IN) {
+ NDR_PRINT_IN_DEBUG(wks_QueryInfo, r);
+ }
+
status = dcerpc_ndr_request(p, DCERPC_WKS_QUERYINFO, mem_ctx,
(ndr_push_fn_t) ndr_push_wks_QueryInfo,
(ndr_pull_fn_t) ndr_pull_wks_QueryInfo,
r);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
+
+ if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
+ NDR_PRINT_OUT_DEBUG(wks_QueryInfo, r);
}
-
- return r->out.result;
+ if (NT_STATUS_IS_OK(status)) status = r->out.result;
+
+ return status;
}