mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
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
This commit is contained in:
parent
3787062664
commit
34cbd89fec
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user