From: Michael Adam Date: Tue, 21 Jul 2015 12:49:16 +0000 (+0200) Subject: param: treat negative values of 'smb2 max credits' as default. X-Git-Tag: talloc-2.1.4~523 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea6d35ccdddaa692f66ac2cebd7a66110cd66c98;p=thirdparty%2Fsamba.git param: treat negative values of 'smb2 max credits' as default. Signed-off-by: Michael Adam Reviewed-by: Jeremy Allison --- 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;