Index: nss/lib/libpkix/pkix/store/pkix_store.c |
diff --git a/nss/lib/libpkix/pkix/store/pkix_store.c b/nss/lib/libpkix/pkix/store/pkix_store.c |
index 31c21ea1609495938350bb58285f853976c70973..af8be2bb2cc931bd51c53e89fec9153ea24e5449 100755 |
--- a/nss/lib/libpkix/pkix/store/pkix_store.c |
+++ b/nss/lib/libpkix/pkix/store/pkix_store.c |
@@ -74,11 +74,11 @@ pkix_CertStore_Hashcode( |
PKIX_CERTSTOREHASHCODEFAILED); |
} |
- *pHashcode = (PKIX_UInt32) certStore->certCallback + |
- (PKIX_UInt32) certStore->crlCallback + |
- (PKIX_UInt32) certStore->certContinue + |
- (PKIX_UInt32) certStore->crlContinue + |
- (PKIX_UInt32) certStore->trustCallback + |
+ *pHashcode = (PKIX_UInt32)((char *)certStore->certCallback - (char *)NULL) + |
+ (PKIX_UInt32)((char *)certStore->crlCallback - (char *)NULL) + |
+ (PKIX_UInt32)((char *)certStore->certContinue - (char *)NULL) + |
+ (PKIX_UInt32)((char *)certStore->crlContinue - (char *)NULL) + |
+ (PKIX_UInt32)((char *)certStore->trustCallback - (char *)NULL) + |
(tempHash << 7); |
cleanup: |