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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user