From a36ac07720d8fe690165d1b70beb6040b34df92d Mon Sep 17 00:00:00 2001 From: "kaie%kuix.de" Date: Tue, 15 Jan 2008 21:41:06 +0000 Subject: [PATCH] Bug 407523, Error page should not allow adding an exception for inadequate key usage r=rrelyea, a=mtschrep git-svn-id: svn://10.0.0.236/trunk@243140 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/manager/ssl/src/nsNSSIOLayer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/security/manager/ssl/src/nsNSSIOLayer.cpp b/mozilla/security/manager/ssl/src/nsNSSIOLayer.cpp index 47ba84b0d0b..3802a051b65 100644 --- a/mozilla/security/manager/ssl/src/nsNSSIOLayer.cpp +++ b/mozilla/security/manager/ssl/src/nsNSSIOLayer.cpp @@ -2802,6 +2802,9 @@ nsNSSBadCertHandler(void *arg, PRFileDesc *sslSocket) default: // we are not willing to continue on any other error nsHandleSSLError(infoObject, i_node->error); + // this error is our stop condition, so let's make sure + // this error code will be reported to the external world. + PR_SetError(i_node->error, 0); return cancel_and_failure(infoObject); } }