mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
param: treat negative values of 'smb2 max credits' as default.
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
a6e387d689
commit
ea6d35ccdd
@ -1035,7 +1035,7 @@ int lp_winbind_max_domain_connections(void)
|
||||
|
||||
int lp_smb2_max_credits(void)
|
||||
{
|
||||
if (Globals.ismb2_max_credits == 0) {
|
||||
if (Globals.ismb2_max_credits <= 0) {
|
||||
Globals.ismb2_max_credits = DEFAULT_SMB2_MAX_CREDITS;
|
||||
}
|
||||
return Globals.ismb2_max_credits;
|
||||
|
Loading…
Reference in New Issue
Block a user