summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorOliver-Rainer Wittmann <orw@apache.org>2014-01-21 16:17:39 +0000
committerOliver-Rainer Wittmann <orw@apache.org>2014-01-21 16:17:39 +0000
commit117218483797c0aeedef9b68bdae96a727cb3426 (patch)
treeb8bc8d9589c90e923a449fd2c327fffc5163a3be /uui
parent3552c7f9561f43024ca32f50e4bf63b31233b03c (diff)
123744: method <handleCertificateValidationRequest_(..)> - correct consideration of Subject Alternative Name field of the given certificate
Notes
Notes: merged as: 0ff31c26f3ebbad1d61c7033e946a287e3910bae
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl-ssl.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx
index 36dd6676185a..0b5119b8d344 100644
--- a/uui/source/iahndl-ssl.cxx
+++ b/uui/source/iahndl-ssl.cxx
@@ -308,9 +308,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];
}
}