mirror of https://github.com/wolfSSL/wolfTPM.git
F-9177 - Reset the responder only after the end session ack is encrypted
parent
19b33fb29f
commit
550277ef13
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue