Merge pull request #180 from ebfe/misleading-indent
lib/fetch/common.c: fix build with -Werror=misleading-indentation
This commit is contained in:
commit
ce4400da1a
@ -754,17 +754,17 @@ fetch_ssl_verify_cn(X509_NAME *subject, const char *host,
|
|||||||
NID_commonName, lastpos)) != -1)
|
NID_commonName, lastpos)) != -1)
|
||||||
loc = lastpos;
|
loc = lastpos;
|
||||||
|
|
||||||
if (loc > -1) {
|
if (loc > -1) {
|
||||||
nameentry = X509_NAME_get_entry(subject, loc);
|
nameentry = X509_NAME_get_entry(subject, loc);
|
||||||
namedata = X509_NAME_ENTRY_get_data(nameentry);
|
namedata = X509_NAME_ENTRY_get_data(nameentry);
|
||||||
cnlen = ASN1_STRING_to_UTF8(&cn, namedata);
|
cnlen = ASN1_STRING_to_UTF8(&cn, namedata);
|
||||||
if (ip == NULL &&
|
if (ip == NULL &&
|
||||||
fetch_ssl_hname_match(host, strlen(host), (const char *)cn, cnlen))
|
fetch_ssl_hname_match(host, strlen(host), (const char *)cn, cnlen))
|
||||||
ret = 1;
|
ret = 1;
|
||||||
else if (ip != NULL && fetch_ssl_ipaddr_match(ip, (const char *)cn, cnlen))
|
else if (ip != NULL && fetch_ssl_ipaddr_match(ip, (const char *)cn, cnlen))
|
||||||
ret = 1;
|
ret = 1;
|
||||||
OPENSSL_free(cn);
|
OPENSSL_free(cn);
|
||||||
}
|
}
|
||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user