Bug 997795 - Cleanup decodings. r=dkeeler
authorCamilo Viecco <cviecco@mozilla.com>
Thu, 17 Apr 2014 14:42:05 -0700
changeset 179509 ba276673a564f5906115959a1823250123f8ca4a
parent 179508 7c18257d0163e793150777c8e2812cb660501adf
child 179510 903bbde3a7c44b946ff450a4be5b61faa9bd7146
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersdkeeler
bugs997795
milestone31.0a1
Bug 997795 - Cleanup decodings. r=dkeeler
security/manager/ssl/src/TransportSecurityInfo.cpp
--- a/security/manager/ssl/src/TransportSecurityInfo.cpp
+++ b/security/manager/ssl/src/TransportSecurityInfo.cpp
@@ -787,17 +787,17 @@ AppendErrorTextMismatch(const nsString &
     // currently CERT_FindNSStringExtension is not being exported by NSS.
     // If it gets exported, enable the following line.
     //   certName = CERT_FindNSStringExtension(nssCert, SEC_OID_NS_CERT_EXT_SSL_SERVER_NAME);
     // However, it has been discussed to treat the extension as obsolete and ignore it.
     if (!certName)
       certName = CERT_GetCommonName(&nssCert->subject);
     if (certName) {
       ++nameCount;
-      allNames.AssignASCII(certName);
+      allNames.Assign(NS_ConvertUTF8toUTF16(certName));
       PORT_Free(certName);
     }
   }
 
   if (nameCount > 1) {
     nsString message;
     rv = component->GetPIPNSSBundleString("certErrorMismatchMultiple", 
                                           message);