Bug 1348767 - use bitwise or, r=franziskus
authorPetr Cerny <pcerny@suse.cz>
Mon, 20 Mar 2017 12:06:27 +0100
changeset 13230 0dca14409fefa9090db2a382d2dbfdc6d800852e
parent 13229 42d76657dc9501e520514a69c464bee9377ce49c
child 13231 e77d9a39893e4e19fb7bd6154048b407fe6fcbe2
push id2100
push userfranziskuskiefer@gmail.com
push dateMon, 20 Mar 2017 11:11:05 +0000
reviewersfranziskus
bugs1348767
Bug 1348767 - use bitwise or, r=franziskus
lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocsprequest.c
--- a/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocsprequest.c
+++ b/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocsprequest.c
@@ -84,18 +84,18 @@ pkix_pl_OcspRequest_Hashcode(
 
         if (ocspRq->addServiceLocator == PKIX_TRUE) {
                 extensionHash = 0xff;
         }
 
         PKIX_HASHCODE(ocspRq->signerCert, &signerHash, plContext,
                 PKIX_CERTHASHCODEFAILED);
 
-        *pHashcode = (((((extensionHash << 8) || certHash) << 8) ||
-                dateHash) << 8) || signerHash;
+        *pHashcode = (((((extensionHash << 8) | certHash) << 8) |
+                dateHash) << 8) | signerHash;
 
 cleanup:
 
         PKIX_RETURN(OCSPREQUEST);
 
 }
 
 /*