mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Fixed comparison of integers of different signs. (#544)
This commit is contained in:
parent
0a2cb20223
commit
3d47a51430
1 changed files with 1 additions and 1 deletions
|
@ -5671,7 +5671,7 @@ SSLClient::verify_host_with_subject_alt_name(X509 *server_cert) const {
|
|||
|
||||
auto count = sk_GENERAL_NAME_num(alt_names);
|
||||
|
||||
for (auto i = 0; i < count && !dsn_matched; i++) {
|
||||
for (decltype(count) i = 0; i < count && !dsn_matched; i++) {
|
||||
auto val = sk_GENERAL_NAME_value(alt_names, i);
|
||||
if (val->type == type) {
|
||||
auto name = (const char *)ASN1_STRING_get0_data(val->d.ia5);
|
||||
|
|
Loading…
Reference in a new issue