diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-04-01 21:19:53 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-04-16 10:39:50 +0200 |
commit | 1e7f8d5ad0678566f14ce1c0b67e131183decf08 (patch) | |
tree | 26d320f3ba0b7b2507443174bb70a580657cd5ba /source3 | |
parent | f35d20119a3a6992cb3a9be047dbd723470d4b86 (diff) | |
download | samba-1e7f8d5ad0678566f14ce1c0b67e131183decf08.tar.gz samba-1e7f8d5ad0678566f14ce1c0b67e131183decf08.tar.bz2 samba-1e7f8d5ad0678566f14ce1c0b67e131183decf08.zip |
s3:smbd/sesssetup: use a helper variable 'action' to mark guest access
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/sesssetup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 6bc1260770..7d1535af5a 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -400,6 +400,7 @@ void reply_sesssetup_and_X(struct smb_request *req) struct auth_usersupplied_info *user_info = NULL; struct auth_session_info *session_info = NULL; uint16 smb_flag2 = req->flags2; + uint16_t action = 0; NTSTATUS nt_status; struct smbd_server_connection *sconn = req->sconn; @@ -745,7 +746,7 @@ void reply_sesssetup_and_X(struct smb_request *req) } if (security_session_user_level(session_info, NULL) < SECURITY_USER) { - SSVAL(req->outbuf,smb_vwv2,1); + action = 1; } /* register the name and uid as being validated, so further connections @@ -780,6 +781,7 @@ void reply_sesssetup_and_X(struct smb_request *req) data_blob_free(&nt_resp); data_blob_free(&lm_resp); + SSVAL(req->outbuf,smb_vwv2,action); SSVAL(req->outbuf,smb_uid,sess_vuid); SSVAL(discard_const_p(char, req->inbuf),smb_uid,sess_vuid); req->vuid = sess_vuid; |