DPE: Fix regression test suite
When cert_id (which is optional) is not encoded, some garbage data
was read from the stack.
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Change-Id: I493ae5ebead0c5724daa3f3ae589510f70614196
diff --git a/partitions/dice_protection_environment/dpe_cmd_decode.c b/partitions/dice_protection_environment/dpe_cmd_decode.c
index f941be8..072e8eb 100644
--- a/partitions/dice_protection_environment/dpe_cmd_decode.c
+++ b/partitions/dice_protection_environment/dpe_cmd_decode.c
@@ -224,7 +224,7 @@
/* Initialise optional parameters with their default value in case
* they are not encoded in the input command
*/
- cert_id = DPE_CERT_ID_INVALID;
+ cert_id64 = DPE_CERT_ID_INVALID;
retain_parent_context = false;
allow_new_context_to_derive = true;
create_certificate = true;