| Previous | Next |
| SEC_E_SECURITY_QOS_FAILED | SEC_E_NO_TGT_REPLY |
SEC_E_UNFINISHED_CONTEXT_DELETED
SEC_E_UNFINISHED_CONTEXT_DELETED means that code deleted a security context before authentication negotiation finished. SSPI reports this as a logon failure, but the underlying problem is generally local context lifetime management.
Typical race
One path abandons a connection after a timeout or transport error while another path is still handling the next handshake token. The cleanup destroys the context, and the remaining handshake call observes the deleted state.
How to prevent it
- Assign one owner for the context state machine.
- Serialize teardown with all pending handshake work.
- On failure, free a partial context only after no caller can access it again.
Microsoft: AcceptSecurityContext (General) · SSPI Status Codes
Looking for a different code? Search another status or error code.