diff options
author | Volker Lendecke <vl@samba.org> | 2009-02-09 12:32:16 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-02-16 09:56:58 +0100 |
commit | b562397035b3db98c9bd7ec791527e4cf291976a (patch) | |
tree | ea96ff0ec2b8f2dffb1948dce9b0040ebf8840c2 /source/rpc_server | |
parent | 4d4ae6ad1020a068000a3bcac039b63b6de49e3f (diff) | |
download | samba-b562397035b3db98c9bd7ec791527e4cf291976a.tar.gz |
Fix count in _srvsvc_NetDiskEnum()
Without this, remotely adding a share via MMC fails
(cherry picked from commit 197b4c42bbf53347f4953e39099192693d709a7d)
(cherry picked from commit 7f6bf488fd3758f631edcade61378955cf9bf674)
Diffstat (limited to 'source/rpc_server')
-rw-r--r-- | source/rpc_server/srv_srvsvc_nt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/rpc_server/srv_srvsvc_nt.c b/source/rpc_server/srv_srvsvc_nt.c index 47688b114c8..5df3daa14b2 100644 --- a/source/rpc_server/srv_srvsvc_nt.c +++ b/source/rpc_server/srv_srvsvc_nt.c @@ -2322,6 +2322,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++; |