mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-05 23:34:56 +02:00
SMB2Client: Minor code readability improvement
This commit is contained in:
parent
ffacfa53fb
commit
143c23c367
1 changed files with 2 additions and 2 deletions
|
@ -273,13 +273,13 @@ namespace SMBLibrary.Client
|
|||
response = WaitForCommand(request.MessageID);
|
||||
}
|
||||
|
||||
if (response is SessionSetupResponse)
|
||||
if (response is SessionSetupResponse finalSessionSetupResponse)
|
||||
{
|
||||
m_isLoggedIn = (response.Header.Status == NTStatus.STATUS_SUCCESS);
|
||||
if (m_isLoggedIn)
|
||||
{
|
||||
m_sessionKey = authenticationClient.GetSessionKey();
|
||||
SessionFlags sessionFlags = ((SessionSetupResponse)response).SessionFlags;
|
||||
SessionFlags sessionFlags = finalSessionSetupResponse.SessionFlags;
|
||||
if ((sessionFlags & SessionFlags.IsGuest) > 0)
|
||||
{
|
||||
// [MS-SMB2] 3.2.5.3.1 If the SMB2_SESSION_FLAG_IS_GUEST bit is set in the SessionFlags field of the SMB2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue