mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s3:libsmb: remove unused cli->is_samba
s3:libsmb: remove unused cli->is_samba metze Signed-off-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3c6808d5ed
commit
ff52be06e5
@ -75,7 +75,6 @@ struct cli_state {
|
||||
size_t max_mux;
|
||||
int initialised;
|
||||
int win95;
|
||||
bool is_samba;
|
||||
bool is_guestlogin;
|
||||
uint32 capabilities;
|
||||
/* What the server offered. */
|
||||
|
@ -317,9 +317,6 @@ static void cli_session_setup_lanman2_done(struct tevent_req *subreq)
|
||||
}
|
||||
p += ret;
|
||||
|
||||
if (strstr(cli->server_type, "Samba")) {
|
||||
cli->is_samba = True;
|
||||
}
|
||||
status = cli_set_username(cli, state->user);
|
||||
if (tevent_req_nterror(req, status)) {
|
||||
return;
|
||||
@ -545,10 +542,6 @@ static void cli_session_setup_guest_done(struct tevent_req *subreq)
|
||||
}
|
||||
p += ret;
|
||||
|
||||
if (strstr(cli->server_type, "Samba")) {
|
||||
cli->is_samba = True;
|
||||
}
|
||||
|
||||
status = cli_set_username(cli, "");
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
tevent_req_nterror(req, status);
|
||||
@ -756,9 +749,7 @@ static void cli_session_setup_plain_done(struct tevent_req *subreq)
|
||||
if (tevent_req_nterror(req, status)) {
|
||||
return;
|
||||
}
|
||||
if (strstr(cli->server_type, "Samba")) {
|
||||
cli->is_samba = True;
|
||||
}
|
||||
|
||||
tevent_req_done(req);
|
||||
}
|
||||
|
||||
@ -1105,10 +1096,6 @@ static void cli_session_setup_nt1_done(struct tevent_req *subreq)
|
||||
}
|
||||
p += ret;
|
||||
|
||||
if (strstr(cli->server_type, "Samba")) {
|
||||
cli->is_samba = True;
|
||||
}
|
||||
|
||||
status = cli_set_username(cli, state->user);
|
||||
if (tevent_req_nterror(req, status)) {
|
||||
return;
|
||||
@ -1358,10 +1345,6 @@ static void cli_sesssetup_blob_done(struct tevent_req *subreq)
|
||||
}
|
||||
p += ret;
|
||||
|
||||
if (strstr(cli->server_type, "Samba")) {
|
||||
cli->is_samba = True;
|
||||
}
|
||||
|
||||
if (state->blob.length != 0) {
|
||||
/*
|
||||
* More to send
|
||||
@ -2086,10 +2069,6 @@ NTSTATUS cli_session_setup(struct cli_state *cli,
|
||||
}
|
||||
}
|
||||
|
||||
if (strstr(cli->server_type, "Samba")) {
|
||||
cli->is_samba = True;
|
||||
}
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
|
@ -979,14 +979,6 @@ static bool run_readwritelarge_internal(void)
|
||||
cli_sockopt(cli1, sockops);
|
||||
memset(buf,'\0',sizeof(buf));
|
||||
|
||||
if (signing_state == Required) {
|
||||
/* Horrible cheat to force
|
||||
multiple signed outstanding
|
||||
packets against a Samba server.
|
||||
*/
|
||||
cli1->is_samba = false;
|
||||
}
|
||||
|
||||
printf("starting readwritelarge_internal\n");
|
||||
|
||||
cli_unlink(cli1, lockfname, FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
|
||||
|
Loading…
x
Reference in New Issue
Block a user