fix broken HPUX builds
authorian.mcgreer%sun.com
Fri, 26 Apr 2002 12:59:06 +0000
changeset 3067 5533199693be2578d81a54f43f8fb51a1939e39d
parent 3066 394a55b208636a2d101f14ce819158201722c5c0
child 3068 63d0bfc79acf52d0ae7cb421d7b8d822c3bc5f46
push idunknown
push userunknown
push dateunknown
fix broken HPUX builds
security/nss/lib/dev/devutil.c
--- a/security/nss/lib/dev/devutil.c
+++ b/security/nss/lib/dev/devutil.c
@@ -682,21 +682,21 @@ create_object_array
     if (*numObjects == MAX_LOCAL_CACHE_OBJECTS) {
 	/* Hit the maximum allowed, so don't use a cache (there are
 	 * too many objects to make caching worthwhile, presumably, if
 	 * the token can handle that many objects, it can handle searching.
 	 */
 	*doObjects = PR_FALSE;
 	*status = PR_FAILURE;
 	*numObjects = 0;
-    } else if (numObjects > 0) {
+    } else if (*numObjects > 0) {
 	rvOandA = nss_ZNEWARRAY(NULL, 
 	                        nssCryptokiObjectAndAttributes *, 
 	                        *numObjects + 1);
-	status = rvOandA ? PR_SUCCESS : PR_FALSE;
+	*status = rvOandA ? PR_SUCCESS : PR_FALSE;
     }
     return rvOandA;
 }
 
 static nssCryptokiObjectAndAttributes *
 create_object
 (
   nssCryptokiObject *object,