1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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>
This commit is contained in:
Shekhar Amlekar 2014-02-04 13:56:57 +05:30 committed by Christof Schmitt
parent 0ce4631871
commit cc84aa48f0

View File

@ -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);