summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-05 20:26:54 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-10 09:18:52 +0200
commit11e0be0e72cfc4bc65ba2b0ffd10cbae3ad69b2d (patch)
treea4ce7dfcbf0548ab22d9f7556aed372c2c2786d2
parentd944841211a407c3587ccabd3615df55fba72aaf (diff)
downloadsamba-11e0be0e72cfc4bc65ba2b0ffd10cbae3ad69b2d.tar.gz
samba-11e0be0e72cfc4bc65ba2b0ffd10cbae3ad69b2d.tar.bz2
samba-11e0be0e72cfc4bc65ba2b0ffd10cbae3ad69b2d.zip
s3:libsmb: remove unused cli_state->is_guestlogin
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source3/include/client.h1
-rw-r--r--source3/libsmb/cliconnect.c5
2 files changed, 0 insertions, 6 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index 52e2212c06..ba7b049880 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -72,7 +72,6 @@ struct cli_state {
int timeout; /* in milliseconds. */
int initialised;
int win95;
- bool is_guestlogin;
/* What the server offered. */
uint32_t server_posix_capabilities;
/* What the client requested. */
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 7179c4f209..07d9a8aa8f 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -240,7 +240,6 @@ static void cli_session_setup_lanman2_done(struct tevent_req *subreq)
p = bytes;
cli_state_set_uid(state->cli, SVAL(inhdr, HDR_UID));
- cli->is_guestlogin = ((SVAL(vwv+2, 0) & 1) != 0);
status = smb_bytes_talloc_string(cli,
inhdr,
@@ -448,7 +447,6 @@ static void cli_session_setup_guest_done(struct tevent_req *subreq)
p = bytes;
cli_state_set_uid(state->cli, SVAL(inhdr, HDR_UID));
- cli->is_guestlogin = ((SVAL(vwv+2, 0) & 1) != 0);
status = smb_bytes_talloc_string(cli,
inhdr,
@@ -613,7 +611,6 @@ static void cli_session_setup_plain_done(struct tevent_req *subreq)
p = bytes;
cli_state_set_uid(state->cli, SVAL(inhdr, HDR_UID));
- cli->is_guestlogin = ((SVAL(vwv+2, 0) & 1) != 0);
status = smb_bytes_talloc_string(cli,
inhdr,
@@ -930,7 +927,6 @@ static void cli_session_setup_nt1_done(struct tevent_req *subreq)
p = bytes;
cli_state_set_uid(state->cli, SVAL(inhdr, HDR_UID));
- cli->is_guestlogin = ((SVAL(vwv+2, 0) & 1) != 0);
status = smb_bytes_talloc_string(cli,
inhdr,
@@ -1180,7 +1176,6 @@ static void cli_sesssetup_blob_done(struct tevent_req *subreq)
state->inbuf = in;
inhdr = in + NBT_HDR_SIZE;
cli_state_set_uid(state->cli, SVAL(inhdr, HDR_UID));
- cli->is_guestlogin = ((SVAL(vwv+2, 0) & 1) != 0);
blob_length = SVAL(vwv+3, 0);
if (blob_length > num_bytes) {