X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fx509v3%2Fv3_ncons.c;h=9a99cb2fa094455dabde146095c194f908a65c57;hp=511fbd73caed7fec636cb2efbb169be459aba6a4;hb=fa0f834c204020e9d2ce5508070f7a2eda663442;hpb=e9746e03ee222b0123ac118f8952e161e7d48a2d diff --git a/crypto/x509v3/v3_ncons.c b/crypto/x509v3/v3_ncons.c index 511fbd73ca..9a99cb2fa0 100644 --- a/crypto/x509v3/v3_ncons.c +++ b/crypto/x509v3/v3_ncons.c @@ -458,7 +458,7 @@ static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base) const char *baseptr = (char *)base->data; const char *hostptr = (char *)uri->data; const char *p = strchr(hostptr, ':'); - size_t hostlen; + int hostlen; /* Check for foo:// and skip past it */ if (!p || (p[1] != '/') || (p[2] != '/')) return X509_V_ERR_UNSUPPORTED_NAME_SYNTAX; @@ -493,7 +493,7 @@ static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base) return X509_V_ERR_PERMITTED_VIOLATION; } - if ((base->length != hostlen) || strncasecmp(hostptr, baseptr, hostlen)) + if ((base->length != (int)hostlen) || strncasecmp(hostptr, baseptr, hostlen)) return X509_V_ERR_PERMITTED_VIOLATION; return X509_V_OK;