From faaf5fc590ab63cf5b0fd4b20ae331d1cfbb7b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 16 Feb 2016 16:31:31 +0100 Subject: [PATCH] =?UTF-8?q?x509:=20IP=20in=20SAN:=20fix=20typos=20caught?= =?UTF-8?q?=20by=20J=C3=A1nos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/x509_crt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/x509_crt.c b/library/x509_crt.c index c80669235..178494701 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -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 ) {