File nss-fix-dh-pkcs-derive-inverted-logic.patch of Package mozilla-nss.14856

diff --git a/nss/lib/softoken/pkcs11c.c b/nss/lib/softoken/pkcs11c.c
index dc8819b..2540d87 100644
--- a/nss/lib/softoken/pkcs11c.c
+++ b/nss/lib/softoken/pkcs11c.c
@@ -8075,7 +8075,7 @@ NSC_DeriveKey(CK_SESSION_HANDLE hSession,
             if (crv == CKR_OK) {
                 rv = KEA_Verify(&dhPublic, &dhPrime, &dhSubPrime);
                 PORT_Free(dhSubPrime.data);
-                if (rv != SECSuccess) {
+                if (rv == PR_FALSE) {
                     crv = CKR_ARGUMENTS_BAD;
                     PORT_Free(dhPrime.data);
                     PORT_Free(dhValue.data);
openSUSE Build Service is sponsored by