From 9fb2562324e4381f8d0d5eaf864790ad770293b9 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 16 Aug 2017 22:27:15 +0200 Subject: [PATCH] libcli/smb: debug an error if smb1cli_req_writev_submit() is called for SMB2/3 BUG: https://bugzilla.samba.org/show_bug.cgi?id=12968 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Aug 18 04:45:03 CEST 2017 on sn-devel-144 --- libcli/smb/smbXcli_base.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index cc8978975e1..d73949b90d7 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -1661,6 +1661,9 @@ static NTSTATUS smb1cli_req_writev_submit(struct tevent_req *req, } if (state->conn->protocol > PROTOCOL_NT1) { + DBG_ERR("called for dialect[%s] server[%s]\n", + smb_protocol_types_string(state->conn->protocol), + smbXcli_conn_remote_name(state->conn)); return NT_STATUS_REVISION_MISMATCH; } -- 2.11.4.GIT