Call DeleteSecurityContext during Logoff

This commit is contained in:
Tal Aloni 2017-02-18 16:14:40 +02:00
parent 0764237260
commit b54cee3070
2 changed files with 2 additions and 0 deletions

View file

@ -130,6 +130,7 @@ namespace SMBLibrary.Server
}
else if (command is LogoffAndXRequest)
{
m_securityProvider.DeleteSecurityContext(ref session.SecurityContext.AuthenticationContext);
state.RemoveSession(header.UID);
return new LogoffAndXResponse();
}

View file

@ -129,6 +129,7 @@ namespace SMBLibrary.Server
}
else if (command is LogoffRequest)
{
m_securityProvider.DeleteSecurityContext(ref session.SecurityContext.AuthenticationContext);
state.RemoveSession(command.Header.SessionID);
return new LogoffResponse();
}