summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srvsvc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-13 11:50:04 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-13 15:45:36 +0100
commit1399e6bdf52d2ef08d1cea918a171108c502900a (patch)
tree3726c790f8354742f877cfd6c2d0f135f4d5c908 /source3/rpc_server/srvsvc
parent1cf54ef4a69e78dff5a812d447b0f385b56c5ebd (diff)
downloadsamba-1399e6bdf52d2ef08d1cea918a171108c502900a.tar.gz
samba-1399e6bdf52d2ef08d1cea918a171108c502900a.tar.bz2
samba-1399e6bdf52d2ef08d1cea918a171108c502900a.zip
s3:param: don't reference conn_snum_used directly in load_usershare_shares()
This uses the same logic as lp_killunused(). metze
Diffstat (limited to 'source3/rpc_server/srvsvc')
-rw-r--r--source3/rpc_server/srvsvc/srv_srvsvc_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
index fca616e66b..f4f37c3b00 100644
--- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
@@ -574,7 +574,7 @@ static WERROR init_srv_share_info_ctr(struct pipes_struct *p,
/* Ensure all the usershares are loaded. */
become_root();
- load_usershare_shares(msg_ctx_to_sconn(p->msg_ctx));
+ load_usershare_shares(msg_ctx_to_sconn(p->msg_ctx), conn_snum_used);
load_registry_shares();
num_services = lp_numservices();
unbecome_root();