F-9177 - Reset the responder only after the end session ack is encrypted

pull/604/head
Aidan Garske 2026-09-10 11:19:23 -07:00
parent 19b33fb29f
commit 550277ef13
1 changed files with 1 additions and 1 deletions

View File

@ -1159,7 +1159,7 @@ static int RespDispatchSecured(WOLFSPDM_RESP_CTX* rctx,
rc = wolfSPDM_DeriveAppDataKeys(ctx);
}
if (sessionEnded) {
if (sessionEnded && rc == WOLFSPDM_SUCCESS) {
wolfSPDM_RespReset(rctx);
}
return rc;