From c318c94170d58aeaa34f00e06fbf960816f7d0d9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 27 Feb 2012 14:24:30 +1100 Subject: s3-param: Align lp_{max,min}protocol with lib/param names This adds an alisas to ensure that both our loadparm systems know all the names. I would like to move to the 'server ..' name as canonical, and this will be raised on the list. Andrew Bartlett --- source3/smbd/negprot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/negprot.c') diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 717000a432..2f3fd450ca 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -695,8 +695,8 @@ void reply_negprot(struct smb_request *req) /* Check for protocols, most desirable first */ for (protocol = 0; supported_protocols[protocol].proto_name; protocol++) { i = 0; - if ((supported_protocols[protocol].protocol_level <= lp_maxprotocol()) && - (supported_protocols[protocol].protocol_level >= lp_minprotocol())) + if ((supported_protocols[protocol].protocol_level <= lp_srv_maxprotocol()) && + (supported_protocols[protocol].protocol_level >= lp_srv_minprotocol())) while (i < num_cliprotos) { if (strequal(cliprotos[i],supported_protocols[protocol].proto_name)) choice = i; -- cgit