mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
b=95988 r=relyea sr=tor a=asa
Fix crash when viewing a certificate
This commit is contained in:
parent
1752115066
commit
48301602ca
@ -32,7 +32,7 @@
|
||||
* may use your version of this file under either the MPL or the
|
||||
* GPL.
|
||||
*
|
||||
* $Id: nsNSSCertificate.cpp,v 1.50 2001/08/28 16:45:55 ddrinan%netscape.com Exp $
|
||||
* $Id: nsNSSCertificate.cpp,v 1.51 2001/08/30 05:21:59 kaie%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "prmem.h"
|
||||
@ -1889,7 +1889,7 @@ ProcessSECAlgorithmID(SECAlgorithmID *algID,
|
||||
*retSequence = nsnull;
|
||||
nsString text;
|
||||
GetOIDText(&algID->algorithm, nssComponent, text);
|
||||
if (algID->parameters.data[0] == nsIASN1Object::ASN1_NULL) {
|
||||
if (!algID->parameters.len || algID->parameters.data[0] == nsIASN1Object::ASN1_NULL) {
|
||||
sequence->SetDisplayValue(text.get());
|
||||
sequence->SetProcessObjects(PR_FALSE);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user