From cf5fdebcf8c5cad8f197a7a4f69051b55ce3af72 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 27 Jul 2012 17:03:25 +0300 Subject: [PATCH] Bug 777292 - Convert an nsresult variable to PRStatus; r=ehsan --- security/manager/ssl/src/nsNSSIOLayer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/security/manager/ssl/src/nsNSSIOLayer.cpp b/security/manager/ssl/src/nsNSSIOLayer.cpp index 6166ff8e9aaf..e07bad8dc46f 100644 --- a/security/manager/ssl/src/nsNSSIOLayer.cpp +++ b/security/manager/ssl/src/nsNSSIOLayer.cpp @@ -2423,6 +2423,7 @@ nsSSLIOLayerAddToSocket(PRInt32 family, nsNSSShutDownPreventionLock locker; PRFileDesc* layer = nsnull; nsresult rv; + PRStatus stat; nsNSSSocketInfo* infoObject = new nsNSSSocketInfo(); if (!infoObject) return NS_ERROR_FAILURE; @@ -2454,9 +2455,9 @@ nsSSLIOLayerAddToSocket(PRInt32 family, goto loser; layer->secret = (PRFilePrivate*) infoObject; - rv = PR_PushIOLayer(sslSock, PR_GetLayersIdentity(sslSock), layer); + stat = PR_PushIOLayer(sslSock, PR_GetLayersIdentity(sslSock), layer); - if (NS_FAILED(rv)) { + if (stat == PR_FAILURE) { goto loser; }