libcli: Add debug message if fail to negoatiate SMB protocol
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 26 Sep 2018 21:53:24 +0000 (09:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Sep 2018 09:25:29 +0000 (11:25 +0200)
commit34cbd89fec836f5de0cb5ba3f289b1f4ae00c5d7
treecbf6e04bf6bb2569c2a19808666730fc8339a82e
parent378706266496ce79c1887fe96ab3b15f56770244
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
libcli/smb/smbXcli_base.c