From c6215b0ce1ad833cc2e2441c5c6275a5d5b0fb0a Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Tue, 4 Apr 2023 09:30:12 -0400 Subject: [PATCH] Add braces to a switch case Signed-off-by: Andrzej Kurek --- library/x509write_crt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/x509write_crt.c b/library/x509write_crt.c index 04ce9845d8..63f490d6df 100644 --- a/library/x509write_crt.c +++ b/library/x509write_crt.c @@ -177,6 +177,7 @@ int mbedtls_x509write_crt_set_subject_alternative_name(mbedtls_x509write_cert *c buflen += cur->node.san.unstructured_name.len + 4 + 1; break; case MBEDTLS_X509_SAN_DIRECTORY_NAME: + { const mbedtls_asn1_named_data *chunk = &cur->node.san.directory_name; while (chunk != NULL) { // 5 bytes for OID, max 4 bytes for length, +1 for tag, @@ -187,6 +188,7 @@ int mbedtls_x509write_crt_set_subject_alternative_name(mbedtls_x509write_cert *c } buflen += cur->node.san.unstructured_name.len + 4 + 1; break; + } default: /* Not supported - skip. */ break;