summaryrefslogtreecommitdiff
path: root/source/librpc/gen_ndr/srv_ntsvcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/librpc/gen_ndr/srv_ntsvcs.c')
-rw-r--r--source/librpc/gen_ndr/srv_ntsvcs.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/source/librpc/gen_ndr/srv_ntsvcs.c b/source/librpc/gen_ndr/srv_ntsvcs.c
index d21e86db6e..339de6c747 100644
--- a/source/librpc/gen_ndr/srv_ntsvcs.c
+++ b/source/librpc/gen_ndr/srv_ntsvcs.c
@@ -1007,16 +1007,6 @@ static bool api_PNP_GetDeviceRegProp(pipes_struct *p)
NDR_PRINT_IN_DEBUG(PNP_GetDeviceRegProp, r);
}
- ZERO_STRUCT(r->out);
- r->out.unknown1 = r->in.unknown1;
- r->out.buffer = talloc_zero_array(r, uint8_t, *r->out.buffer_size);
- if (r->out.buffer == NULL) {
- talloc_free(r);
- return false;
- }
-
- r->out.buffer_size = r->in.buffer_size;
- r->out.needed = r->in.needed;
r->out.result = _PNP_GetDeviceRegProp(p, r);
if (p->rng_fault_state) {
@@ -4865,5 +4855,5 @@ void ntsvcs_get_pipe_fns(struct api_struct **fns, int *n_fns)
NTSTATUS rpc_ntsvcs_init(void)
{
- return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, "ntsvcs", "ntsvcs", &ndr_table_ntsvcs.syntax_id, api_ntsvcs_cmds, sizeof(api_ntsvcs_cmds) / sizeof(struct api_struct));
+ return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, "ntsvcs", "ntsvcs", api_ntsvcs_cmds, sizeof(api_ntsvcs_cmds) / sizeof(struct api_struct));
}