From 6b6d20e82c199bcfa573ba93dda0d78fcd0cd86d Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 30 Jul 2012 12:24:36 +0300 Subject: [PATCH] Bug 777292 - security/manager/: Fix incorrect conversions to nsresult; r=kaie --- security/manager/pki/src/nsPKIParamBlock.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/security/manager/pki/src/nsPKIParamBlock.cpp b/security/manager/pki/src/nsPKIParamBlock.cpp index 220f216f18d..6fff5021cb0 100644 --- a/security/manager/pki/src/nsPKIParamBlock.cpp +++ b/security/manager/pki/src/nsPKIParamBlock.cpp @@ -83,7 +83,9 @@ nsPKIParamBlock::SetISupportAtIndex(PRInt32 index, nsISupports *object) return NS_ERROR_OUT_OF_MEMORY; } } - return mSupports->InsertElementAt(object, index-1); + // Ignore any InsertElementAt error, because this function always did that + mSupports->InsertElementAt(object, index-1); + return NS_OK; } /* nsISupports getISupportAtIndex (in PRInt32 index); */