1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:libsmb: add some comments to the noop case for < PROTOCOL_LANMAN1 in cli_session_setup_send()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-10-26 02:03:17 +02:00 committed by Andreas Schneider
parent c01efce2dc
commit cb10628a72

View File

@ -2063,15 +2063,20 @@ struct tevent_req *cli_session_setup_send(TALLOC_CTX *mem_ctx,
workgroup = user2;
}
/*
* Now work out what sort of session setup we are going to
* do. I have split this into separate functions to make the flow a bit
* easier to understand (tridge).
*/
if (smbXcli_conn_protocol(cli->conn) < PROTOCOL_LANMAN1) {
/*
* SessionSetupAndX was introduced by LANMAN 1.0. So we skip
* this step against older servers.
*/
tevent_req_done(req);
return tevent_req_post(req, ev);
}
/* now work out what sort of session setup we are going to
do. I have split this into separate functions to make the
flow a bit easier to understand (tridge) */
/* if its an older server then we have to use the older request format */
if (smbXcli_conn_protocol(cli->conn) < PROTOCOL_NT1) {