From 4ee957afa38de9f8fb6842cc9702133d7958cf94 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Tue, 8 May 2018 10:19:51 -0600 Subject: [PATCH] fix for relative URI detection --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index ce2532a9e..e7d1f908b 100755 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -5717,7 +5717,7 @@ static int DecodeAltNames(byte* input, int sz, DecodedCert* cert) /* Verify RFC 5280 Sec 4.2.1.6 rule: "The name MUST NOT be a relative URI" */ - if (XSTRNCMP((const char*)&input[idx], "://", strLen + 1) != 0) { + if (XSTRNSTR((const char*)&input[idx], "://", strLen + 1) == NULL) { WOLFSSL_MSG("\tAlt Name must be absolute URI"); return ASN_ALT_NAME_E; }