x509: IP in SAN: fix typos caught by János

This commit is contained in:
Manuel Pégourié-Gonnard 2016-02-16 16:31:31 +01:00
parent a245dae702
commit faaf5fc590

View File

@ -1252,7 +1252,7 @@ static int x509_info_subject_alt_name( char **buf, size_t *size,
{
ret = mbedtls_snprintf( p, n, "%sIP:%d.%d.%d.%d", sep,
cur->buf.p[0], cur->buf.p[1],
cur->buf.p[2], cur->buf.p[4] );
cur->buf.p[2], cur->buf.p[3] );
MBEDTLS_X509_SAFE_SNPRINTF;
}
else if( cur->buf.len == 16 )
@ -1287,8 +1287,8 @@ static int x509_info_subject_alt_name( char **buf, size_t *size,
}
#endif /* MBEDTLS_X509_SAN_IP_ADDRESS_SUPPORT */
/*
* tag == 0 happens when the extension is present but with only unknow
* types: we get a list with one uninitialized element
* tag == 0 happens when the extension is present but with only
* unknown types: we get a list with one uninitialized element
*/
else if( cur->buf.tag != 0 )
{