summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2000-10-05 04:24:04 +0000
committerwtc%netscape.com <devnull@localhost>2000-10-05 04:24:04 +0000
commita58cf0304d8e82e94d21b995bc5953005f8f03e1 (patch)
tree3008ce63ab75d0e24a9b67e1f561b0bdad5165c5
parent42e1f667c441f971823edadb697ba83bc190b6b9 (diff)
downloadnss-hg-a58cf0304d8e82e94d21b995bc5953005f8f03e1.tar.gz
Bugzilla bug #55267: checked in a workaround for a tight spin in
PK11_GetSlotList on 64-bit HP-UX.
-rw-r--r--security/nss/lib/pk11wrap/pk11slot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/nss/lib/pk11wrap/pk11slot.c b/security/nss/lib/pk11wrap/pk11slot.c
index b2e27ec96..1a782042e 100644
--- a/security/nss/lib/pk11wrap/pk11slot.c
+++ b/security/nss/lib/pk11wrap/pk11slot.c
@@ -1150,6 +1150,11 @@ PK11_InitSlotLists(void)
PK11SlotList *
PK11_GetSlotList(CK_MECHANISM_TYPE type)
{
+/* XXX a workaround for Bugzilla bug #55267 */
+#if defined(HPUX) && defined(__LP64__)
+ if (CKM_INVALID_MECHANISM == type)
+ return NULL;
+#endif
switch (type) {
case CKM_DES_CBC:
case CKM_DES_ECB: