summaryrefslogtreecommitdiff
path: root/source4/rpc_server/wkssvc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-04-19 18:21:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:19 -0500
commit55da6e7f90d2a48a69ee37140f946131c6a03de6 (patch)
treee8bcae1a96ff5f3b1d480f449a8beff739adc290 /source4/rpc_server/wkssvc
parente5f44e48daadff09e7598176e13a7b5c6d288e6b (diff)
downloadsamba-55da6e7f90d2a48a69ee37140f946131c6a03de6.tar.gz
samba-55da6e7f90d2a48a69ee37140f946131c6a03de6.tar.bz2
samba-55da6e7f90d2a48a69ee37140f946131c6a03de6.zip
r286: use talloc_array_p() instead of talloc()
add some more WERR_NOT_SUPPORTED stubs to pass our torture tests (wkssvc and srvsvc) metze (This used to be commit f8605b39ab58f8db22358122eafccc8a1cc60004)
Diffstat (limited to 'source4/rpc_server/wkssvc')
-rw-r--r--source4/rpc_server/wkssvc/dcesrv_wkssvc.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/source4/rpc_server/wkssvc/dcesrv_wkssvc.c b/source4/rpc_server/wkssvc/dcesrv_wkssvc.c
index 39bd6bfea8..9a94c0c5da 100644
--- a/source4/rpc_server/wkssvc/dcesrv_wkssvc.c
+++ b/source4/rpc_server/wkssvc/dcesrv_wkssvc.c
@@ -126,7 +126,28 @@ static NTSTATUS WKSSVC_NETRWKSTAUSERSETINFO(struct dcesrv_call_state *dce_call,
static NTSTATUS wkssvc_NetWkstaTransportEnum(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct wkssvc_NetWkstaTransportEnum *r)
{
- return NT_STATUS_NOT_IMPLEMENTED;
+ r->out.level = r->in.level;
+ r->out.totalentries = 0;
+ r->out.resume_handle = NULL;
+ r->out.result = WERR_OK;
+
+ switch (r->in.level) {
+ case 0: {
+ r->out.ctr.ctr0 = talloc_p(mem_ctx, struct wkssvc_NetWkstaTransportCtr0);
+ WERR_TALLOC_CHECK(r->out.ctr.ctr0);
+
+ r->out.ctr.ctr0->count = 0;
+ r->out.ctr.ctr0->array = NULL;
+
+ r->out.result = WERR_NOT_SUPPORTED;
+ break;
+ }
+ default:
+ r->out.result = WERR_UNKNOWN_LEVEL;
+ break;
+ }
+
+ return NT_STATUS_OK;
}