mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-13 18:59:18 +02:00
Call DeleteSecurityContext during Logoff
This commit is contained in:
parent
0764237260
commit
b54cee3070
2 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,7 @@ namespace SMBLibrary.Server
|
||||||
}
|
}
|
||||||
else if (command is LogoffAndXRequest)
|
else if (command is LogoffAndXRequest)
|
||||||
{
|
{
|
||||||
|
m_securityProvider.DeleteSecurityContext(ref session.SecurityContext.AuthenticationContext);
|
||||||
state.RemoveSession(header.UID);
|
state.RemoveSession(header.UID);
|
||||||
return new LogoffAndXResponse();
|
return new LogoffAndXResponse();
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,6 +129,7 @@ namespace SMBLibrary.Server
|
||||||
}
|
}
|
||||||
else if (command is LogoffRequest)
|
else if (command is LogoffRequest)
|
||||||
{
|
{
|
||||||
|
m_securityProvider.DeleteSecurityContext(ref session.SecurityContext.AuthenticationContext);
|
||||||
state.RemoveSession(command.Header.SessionID);
|
state.RemoveSession(command.Header.SessionID);
|
||||||
return new LogoffResponse();
|
return new LogoffResponse();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue