From e95bd6e2648a418c3568fc3d64152e91ff63eb2a Mon Sep 17 00:00:00 2001 From: toth92g Date: Tue, 4 May 2021 11:31:03 +0200 Subject: [PATCH] Replacing tabs with spaces Signed-off-by: toth92g --- library/x509_crt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/x509_crt.c b/library/x509_crt.c index 76b593852a..14c5ba57c0 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -660,6 +660,11 @@ static int x509_get_subject_key_id(unsigned char **p, MBEDTLS_ERR_ASN1_LENGTH_MISMATCH; } + if (*p != end) { + return MBEDTLS_ERR_X509_INVALID_EXTENSIONS + + MBEDTLS_ERR_ASN1_LENGTH_MISMATCH; + } + return 0; }