diff --git a/security/manager/ssl/src/nsCrypto.cpp b/security/manager/ssl/src/nsCrypto.cpp index f5d5145dff5..6f9f264f95c 100644 --- a/security/manager/ssl/src/nsCrypto.cpp +++ b/security/manager/ssl/src/nsCrypto.cpp @@ -289,7 +289,7 @@ cryptojs_GetScriptPrincipal(JSContext *cx, JSScript *script, } nsJSPrincipals *nsJSPrin = NS_STATIC_CAST(nsJSPrincipals *, jsp); *result = nsJSPrin->nsIPrincipalPtr; - if (!result) { + if (!*result) { return NS_ERROR_FAILURE; } NS_ADDREF(*result);