Skip to content

Commit

Permalink
Merge pull request #1530 from Phala-Network/dcap-advisory-id
Browse files Browse the repository at this point in the history
dcap: prevent crash if no advisoryIDs
  • Loading branch information
h4x3rotab committed Feb 5, 2024
2 parents 6452b8a + cdaa24e commit 708d0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sgx-attestation/src/dcap/tcb_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct TcbLevel {
pub tcb: Tcb,
pub tcb_date: String,
pub tcb_status: String,
#[serde(rename = "advisoryIDs")]
#[serde(rename = "advisoryIDs", default)]
pub advisory_ids: Vec<String>,
}

Expand Down

0 comments on commit 708d0e6

Please sign in to comment.