mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-20 03:39:58 +00:00
Add missing initialisers
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
35598adb78
commit
f691268ee9
@ -465,7 +465,7 @@ static int pkcs7_get_signed_data(unsigned char *buf, size_t buflen,
|
|||||||
{
|
{
|
||||||
unsigned char *p = buf;
|
unsigned char *p = buf;
|
||||||
unsigned char *end = buf + buflen;
|
unsigned char *end = buf + buflen;
|
||||||
unsigned char *end_content_info;
|
unsigned char *end_content_info = NULL;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||||
mbedtls_md_type_t md_alg;
|
mbedtls_md_type_t md_alg;
|
||||||
@ -500,6 +500,7 @@ static int pkcs7_get_signed_data(unsigned char *buf, size_t buflen,
|
|||||||
}
|
}
|
||||||
|
|
||||||
mbedtls_pkcs7_buf content_type;
|
mbedtls_pkcs7_buf content_type;
|
||||||
|
memset(&content_type, 0, sizeof(content_type));
|
||||||
ret = pkcs7_get_content_info_type(&p, end, &end_content_info, &content_type);
|
ret = pkcs7_get_content_info_type(&p, end, &end_content_info, &content_type);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user