summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c
index ddfe0df10b..1850dcb612 100644
--- a/source3/rpc_server/srv_svcctl_nt.c
+++ b/source3/rpc_server/srv_svcctl_nt.c
@@ -466,9 +466,7 @@ WERROR _svcctl_EnumServicesStatusW(pipes_struct *p,
}
blob = ndr_push_blob(ndr);
- if (blob.length >= r->in.offered) {
- memcpy(r->out.service, blob.data, r->in.offered);
- }
+ memcpy(r->out.service, blob.data, r->in.offered);
}
*r->out.needed = (buffer_size > r->in.offered) ? buffer_size : r->in.offered;