summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorTim Beale <timbeale@catalyst.net.nz>2018-09-27 09:53:24 +1200
committerKarolin Seeger <kseeger@samba.org>2018-11-05 12:44:29 +0100
commit5e4e3daad5a906127c332516508ce4fc3de1ab18 (patch)
tree3818376315cd31ab5ff6dfd54d9dc98e7938623a /libcli
parent4b42e0ee4c19f042c27e786d28ee5465e00c8a4c (diff)
downloadsamba-5e4e3daad5a906127c332516508ce4fc3de1ab18.tar.gz
libcli: Add debug message if fail to negoatiate SMB protocol
Currently if the client and server can't negotiate an SMB protocol, you just get the followiing error on the client-side, which doesn't tell you much. ERROR(runtime): uncaught exception - (3221225667, 'The network responded incorrectly.') This patch adds a debug message to help highlight what's actually going wrong. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13621 Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Sep 28 11:25:29 CEST 2018 on sn-devel-144 (cherry picked from commit 34cbd89fec836f5de0cb5ba3f289b1f4ae00c5d7)
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smbXcli_base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index ad1b67b8476..d94b4d87f27 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -4369,6 +4369,7 @@ static void smbXcli_negprot_smb1_done(struct tevent_req *subreq)
}
if (conn->protocol == PROTOCOL_NONE) {
+ DBG_ERR("No compatible protocol selected by server.\n");
tevent_req_nterror(req, NT_STATUS_INVALID_NETWORK_RESPONSE);
return;
}