1
0
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:
Michael Adam 2015-07-21 14:49:16 +02:00 committed by Jeremy Allison
parent a6e387d689
commit ea6d35ccdd

View File

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