From 117218483797c0aeedef9b68bdae96a727cb3426 Mon Sep 17 00:00:00 2001 From: Oliver-Rainer Wittmann Date: Tue, 21 Jan 2014 16:17:39 +0000 Subject: 123744: method - correct consideration of Subject Alternative Name field of the given certificate --- uui/source/iahndl-ssl.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'uui') 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]; } } -- cgit