Remove superfluous sizeof(unsigned char)

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann 2023-02-21 16:24:38 +00:00
parent 7cdfda12da
commit 89d67bd472

View File

@ -1008,7 +1008,7 @@ int mbedtls_oid_from_numeric_string(mbedtls_asn1_buf *oid,
encoded_len += num_bytes;
}
oid->p = mbedtls_calloc(encoded_len, sizeof(unsigned char));
oid->p = mbedtls_calloc(encoded_len, 1);
if (oid->p == NULL) {
return MBEDTLS_ERR_ASN1_ALLOC_FAILED;
}