From e773978e68a49bf0a2aa3a06c243afbb2c2a1449 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Fri, 2 Jun 2023 09:42:44 -0400 Subject: [PATCH] Remove unnecessary addition to buffer size estimation Signed-off-by: Andrzej Kurek --- library/x509write_crt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/library/x509write_crt.c b/library/x509write_crt.c index ea8471cfb0..274eb4b7ad 100644 --- a/library/x509write_crt.c +++ b/library/x509write_crt.c @@ -201,7 +201,6 @@ int mbedtls_x509write_crt_set_subject_alternative_name(mbedtls_x509write_cert *c CHECK_OVERFLOW_ADD(buflen, chunk->val.len); chunk = chunk->next; } - CHECK_OVERFLOW_ADD(buflen, cur->node.san.unstructured_name.len); CHECK_OVERFLOW_ADD(buflen, 4 + 1); break; }