diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx index d36b3e0ee220..4c10f7ce0465 100644 --- a/uui/source/iahndl-ssl.cxx +++ b/uui/source/iahndl-ssl.cxx @@ -296,9 +296,10 @@ handleCertificateValidationRequest_( certHostNames[0] = certHostName; - for(int n = 1; n < altNames.getLength(); n++){ + for(int n = 0; n < altNames.getLength(); ++n) + { if (altNames[n].Type == security::ExtAltNameType_DNS_NAME){ - altNames[n].Value >>= certHostNames[n]; + altNames[n].Value >>= certHostNames[n+1]; } }