1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-22 07:33:16 +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:
Stefan Metzmacher
2011-09-12 03:19:35 +02:00
committed by Jeremy Allison
parent 3c6808d5ed
commit ff52be06e5
3 changed files with 1 additions and 31 deletions

View File

@@ -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;
}