Skip to content

Commit

Permalink
Remove non-working check from x509_get_subject_alt_name (#2802)
Browse files Browse the repository at this point in the history
FIx one comment.

Signed-off-by: irwir <[email protected]>
  • Loading branch information
irwir committed Apr 18, 2020
1 parent c835672 commit 74aee1c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions library/x509_crt.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,6 @@ static int x509_get_subject_alt_name( unsigned char **p,
mbedtls_x509_subject_alternative_name dummy_san_buf;
memset( &dummy_san_buf, 0, sizeof( dummy_san_buf ) );

if( ( end - *p ) < 1 )
return( MBEDTLS_ERR_X509_INVALID_EXTENSIONS +
MBEDTLS_ERR_ASN1_OUT_OF_DATA );

tag = **p;
(*p)++;
if( ( ret = mbedtls_asn1_get_len( p, end, &tag_len ) ) != 0 )
Expand All @@ -662,7 +658,7 @@ static int x509_get_subject_alt_name( unsigned char **p,
}

/*
* Check that the SAN are structured correct.
* Check that the SAN is structured correctly.
*/
ret = mbedtls_x509_parse_subject_alt_name( &(cur->buf), &dummy_san_buf );
/*
Expand Down

0 comments on commit 74aee1c

Please sign in to comment.