The branch, master has been updated via 5bc97e0cf2fade9e0ff37a67a6256a4e94470f00 (commit) from 03ae7fc1346a817b52d7f2e079b9be0476789d10 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 5bc97e0cf2fade9e0ff37a67a6256a4e94470f00 Author: Volker Lendecke <v...@samba.org> Date: Mon Feb 9 12:32:16 2009 +0100 Fix count in _srvsvc_NetDiskEnum() Without this, remotely adding a share via MMC fails ----------------------------------------------------------------------- Summary of changes: source3/rpc_server/srv_srvsvc_nt.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index 073f92d..056236f 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++; -- Samba Shared Repository