null pointer checks

git-svn-id: svn://10.0.0.236/branches/SUN_SECURITY_3_3_BRANCH@172260 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
glen.beasley%sun.com
2005-04-15 03:00:06 +00:00
parent 776f1ea36a
commit 4aade69cbf

View File

@@ -392,8 +392,8 @@ JSS_OctetStringToByteArray(JNIEnv *env, SECItem *item)
jbyte *bytes;
int size; /* size of the resulting byte array */
PR_ASSERT(env != NULL && item && item->len>0);
if (!env || item || !item->len || !item->data) {
PR_ASSERT(env != NULL && item != NULL && item->len>0);
if (!env || !item || !item->len || !item->data) {
return NULL;
}