File bmo472464.patch of Package mozilla-xulrunner190

From: Wolfgang Rosenauer <wr@rosenauer.org>
Subject: fix crash in certifcate viewer
References:
https://bugzilla.mozilla.org/show_bug.cgi?id=472464

Index: security/manager/ssl/src/nsNSSCertHelper.cpp
===================================================================
RCS file: /cvsroot/mozilla/security/manager/ssl/src/nsNSSCertHelper.cpp,v
retrieving revision 1.33
diff -u -p -6 -r1.33 nsNSSCertHelper.cpp
--- security/manager/ssl/src/nsNSSCertHelper.cpp	14 Dec 2007 17:39:30 -0000	1.33
+++ security/manager/ssl/src/nsNSSCertHelper.cpp	3 Feb 2009 12:35:03 -0000
@@ -986,12 +986,16 @@ ProcessGeneralName(PRArenaPool *arena,
 		   nsINSSComponent *nssComponent)
 {
   nsAutoString key;
   nsXPIDLString value;
   nsresult rv = NS_OK;
 
+  if (!current) {
+    return NS_ERROR_ILLEGAL_VALUE;
+  }
+
   switch (current->type) {
   case certOtherName: {
     SECOidTag oidTag = SECOID_FindOIDTag(&current->name.OthName.oid);
     if (oidTag == SEC_OID(MS_NT_PRINCIPAL_NAME)) {
 	/* The type of this name is apparently nowhere explicitly
 	   documented. However, in the generated templates, it is always
openSUSE Build Service is sponsored by