From e488c454ea7c4b10c926f35b8c04b4f9a4a66a49 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Tue, 25 Apr 2023 04:23:33 -0400 Subject: [PATCH] Remove unnecessary zeroization Signed-off-by: Andrzej Kurek --- library/x509write_crt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/x509write_crt.c b/library/x509write_crt.c index aa4b9074c..6b23a94a9 100644 --- a/library/x509write_crt.c +++ b/library/x509write_crt.c @@ -203,8 +203,6 @@ int mbedtls_x509write_crt_set_subject_alternative_name(mbedtls_x509write_cert *c if (buf == NULL) { return MBEDTLS_ERR_ASN1_ALLOC_FAILED; } - - mbedtls_platform_zeroize(buf, buflen); p = buf + buflen; /* Write ASN.1-based structure */