mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
param: rename lp function and variable from "srv_maxprotocol" to "server_max_protocol"
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
57d407430f
commit
64dc4b59f8
@ -502,7 +502,7 @@ void smbsrv_reply_negprot(struct smbsrv_request *req)
|
||||
for (protocol = 0; supported_protocols[protocol].proto_name; protocol++) {
|
||||
int i;
|
||||
|
||||
if (supported_protocols[protocol].protocol_level > lpcfg_srv_maxprotocol(req->smb_conn->lp_ctx))
|
||||
if (supported_protocols[protocol].protocol_level > lpcfg_server_max_protocol(req->smb_conn->lp_ctx))
|
||||
continue;
|
||||
if (supported_protocols[protocol].protocol_level < lpcfg_srv_minprotocol(req->smb_conn->lp_ctx))
|
||||
continue;
|
||||
|
@ -63,7 +63,7 @@ static NTSTATUS smbsrv_recv_generic_request(void *private_data, DATA_BLOB blob)
|
||||
packet_set_callback(smb_conn->packet, smbsrv_recv_smb_request);
|
||||
return smbsrv_recv_smb_request(smb_conn, blob);
|
||||
case SMB2_MAGIC:
|
||||
if (lpcfg_srv_maxprotocol(smb_conn->lp_ctx) < PROTOCOL_SMB2_02) break;
|
||||
if (lpcfg_server_max_protocol(smb_conn->lp_ctx) < PROTOCOL_SMB2_02) break;
|
||||
status = smbsrv_init_smb2_connection(smb_conn);
|
||||
NT_STATUS_NOT_OK_RETURN(status);
|
||||
packet_set_callback(smb_conn->packet, smbsrv_recv_smb2_request);
|
||||
|
Reference in New Issue
Block a user