summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-09 12:32:16 +0100
committerVolker Lendecke <vl@samba.org>2009-02-09 12:36:49 +0100
commit5bc97e0cf2fade9e0ff37a67a6256a4e94470f00 (patch)
tree650adbd66831f14c2697dbd2e83bb5345b5c3a06 /source3/rpc_server
parent03ae7fc1346a817b52d7f2e079b9be0476789d10 (diff)
downloadsamba-5bc97e0cf2fade9e0ff37a67a6256a4e94470f00.tar.gz
samba-5bc97e0cf2fade9e0ff37a67a6256a4e94470f00.tar.bz2
samba-5bc97e0cf2fade9e0ff37a67a6256a4e94470f00.zip
Fix count in _srvsvc_NetDiskEnum()
Without this, remotely adding a share via MMC fails
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 073f92d45c..056236f22d 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -2328,6 +2328,8 @@ WERROR _srvsvc_NetDiskEnum(pipes_struct *p,
/*allow one struct srvsvc_NetDiskInfo0 for null terminator*/
+ r->out.info->count = 0;
+
for(i = 0; i < MAX_SERVER_DISK_ENTRIES -1 && (disk_name = next_server_disk_enum(&resume)); i++) {
r->out.info->count++;