diff options
author | Shekhar Amlekar <samlekar@in.ibm.com> | 2014-02-04 13:56:57 +0530 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2014-02-06 09:42:29 -0700 |
commit | cc84aa48f0c24afdd9e83bc5816661248e530e44 (patch) | |
tree | b2595896cb7e6cfada09e6e02b8340891362b4ae | |
parent | 0ce46318715577bd8273ed9c0880be54542f227f (diff) | |
download | samba-cc84aa48f0c24afdd9e83bc5816661248e530e44.tar.gz samba-cc84aa48f0c24afdd9e83bc5816661248e530e44.tar.xz samba-cc84aa48f0c24afdd9e83bc5816661248e530e44.zip |
s3: rpc_server/srvsvc: NetShareSetInfo - Correctly initialize max_connections for info levels != 2 before calling the change share script.
Signed-off-by: Shekhar Amlekar <samlekar@in.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
-rw-r--r-- | source3/rpc_server/srvsvc/srv_srvsvc_nt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c index 996bbdde74..101ee8e102 100644 --- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c +++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c @@ -1561,6 +1561,8 @@ WERROR _srvsvc_NetShareSetInfo(struct pipes_struct *p, return WERR_ACCESS_DENIED; } + max_connections = lp_max_connections(snum); + switch (r->in.level) { case 1: pathname = lp_path(ctx, snum); |