summaryrefslogtreecommitdiffstats
path: root/security/nss/lib/ckfw/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/lib/ckfw/object.c')
-rw-r--r--security/nss/lib/ckfw/object.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/security/nss/lib/ckfw/object.c b/security/nss/lib/ckfw/object.c
index ff0542ee4..9f6b4cee0 100644
--- a/security/nss/lib/ckfw/object.c
+++ b/security/nss/lib/ckfw/object.c
@@ -493,18 +493,11 @@ nssCKFWObject_GetAttributeSize(
{
CK_ULONG rv;
-#ifdef NSSDEBUG
if (!pError) {
return (CK_ULONG)0;
}
- *pError = nssCKFWObject_verifyPointer(fwObject);
- if (CKR_OK != *pError) {
- return (CK_ULONG)0;
- }
-#endif /* NSSDEBUG */
-
- if (!fwObject->mdObject->GetAttributeSize) {
+ if (!fwObject || !fwObject->mdObject || !fwObject->mdObject->GetAttributeSize) {
*pError = CKR_GENERAL_ERROR;
return (CK_ULONG)0;
}