s4:libcli/raw: fix up the max_protocol value for the current transport connection
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Nov 2014 13:32:40 +0000 (14:32 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 27 Nov 2014 15:45:05 +0000 (16:45 +0100)
commitbc83e45a19deccfb0106c9ad79b0624b1c5d1fa7
tree151ff2a05f30b9d0652cd08fb393d2effe3c6f89
parent55750f010423b0548e9d6b8f5745d7ad5fc4b773
s4:libcli/raw: fix up the max_protocol value for the current transport connection

This allows the caller to pass PROTOCOL_DEFAULT,
which results in PROTOCOL_NT1.

As smbcli_transport_init() is about SMB1 only we downgrade
to PROTOCOL_NT1 if a higher value (for SMB2 or SMB3) was given.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/libcli/raw/clitransport.c