summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorOliver-Rainer Wittmann <orw@apache.org>2014-01-21 16:17:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-22 09:45:49 +0000
commitfa290c750183ab598447630ab66f382e99188edb (patch)
treedb74f275b1b68721aafa0a95be04c439dda8e3fe /uui
parentc49543cf31c14d4f94f01620244dd7e3ba0919ea (diff)
Resolves: #i123744# correct consideration of Subject Alternative Name...
field of the given certificate (cherry picked from commit 117218483797c0aeedef9b68bdae96a727cb3426) Change-Id: I81fbb49593b15edea2509aed81b252c8e5b0cd82
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 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];
}
}