Remove unnecessary addition to buffer size estimation

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek 2023-06-02 09:42:44 -04:00
parent f994bc51ad
commit e773978e68

View file

@ -201,7 +201,6 @@ int mbedtls_x509write_crt_set_subject_alternative_name(mbedtls_x509write_cert *c
CHECK_OVERFLOW_ADD(buflen, chunk->val.len); CHECK_OVERFLOW_ADD(buflen, chunk->val.len);
chunk = chunk->next; chunk = chunk->next;
} }
CHECK_OVERFLOW_ADD(buflen, cur->node.san.unstructured_name.len);
CHECK_OVERFLOW_ADD(buflen, 4 + 1); CHECK_OVERFLOW_ADD(buflen, 4 + 1);
break; break;
} }