Skip to content

Commit e6f1888

Browse files
haitaohuangCopilot
authored andcommitted
fix(migtd): propagate policy errors in SPDM rebinding path
Use decode_spdm_session_err() in rebinding_old_prepare and rebinding_new_prepare so vendor-defined SPDM errors reach ReportStatus. Signed-off-by: Haitao Huang <haitaohuang@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 47fc365 commit e6f1888

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/migtd/src/migration/rebinding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ pub async fn rebinding_old_prepare(
237237
.into_bytes(),
238238
);
239239
log::error!("rebinding: spdm_requester_rebind_old error: {:?}\n", e);
240-
e
240+
spdm::decode_spdm_session_err(e)
241241
})?;
242242
log::info!("Rebind completed\n");
243243

@@ -308,7 +308,7 @@ pub async fn rebinding_new_prepare(
308308
.into_bytes(),
309309
);
310310
log::error!("rebinding: spdm_responder_rebind_new error: {:?}\n", e);
311-
e
311+
spdm::decode_spdm_session_err(e)
312312
})?;
313313
log::info!("Rebind completed\n");
314314

0 commit comments

Comments
 (0)