From ea6d35ccdddaa692f66ac2cebd7a66110cd66c98 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 21 Jul 2015 14:49:16 +0200 Subject: [PATCH] param: treat negative values of 'smb2 max credits' as default. Signed-off-by: Michael Adam Reviewed-by: Jeremy Allison --- source3/param/loadparm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 98eaec590f5..7d63d58eeb0 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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; -- 2.47.2