diff --git a/programs/psa/key_ladder_demo.c b/programs/psa/key_ladder_demo.c index 2734ceb7fb..0ea434fc5f 100644 --- a/programs/psa/key_ladder_demo.c +++ b/programs/psa/key_ladder_demo.c @@ -392,6 +392,7 @@ static psa_status_t wrap_data(const char *input_file_name, input_file = NULL; /* Construct a header. */ + memset(&header, 0, sizeof(header)); memcpy(&header.magic, WRAPPED_DATA_MAGIC, WRAPPED_DATA_MAGIC_LENGTH); header.ad_size = sizeof(header); header.payload_size = input_size;