1
0
mirror of synced 2025-07-20 16:02:59 +03:00

Fixed comparison of integers of different signs. (#544)

This commit is contained in:
rundong08
2020-06-29 18:19:56 -07:00
committed by GitHub
parent 0a2cb20223
commit 3d47a51430

View File

@ -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);