libsmb: Centralize the SMB2 protocol check
commit4388ba47ea25213d364402da7ddcd032845d2ad3
authorVolker Lendecke <vl@samba.org>
Thu, 29 Sep 2022 09:08:12 +0000 (29 11:08 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 3 Oct 2022 20:03:32 +0000 (3 20:03 +0000)
tree4a86230b03dcfcae4006e2b270d82043971a7740
parent36bd73e836f733068bdc9bb5df704f825fac7d2e
libsmb: Centralize the SMB2 protocol check

Instead of checking protocol correctness in every highlevel routine,
we should rely on the lowerlevel one in smbXcli_base.c to give the
INVALID_PARAMETER error return when running on SMB1

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smbXcli_base.c
source3/libsmb/cli_smb2_fnum.c