Blame SOURCES/rh1868759-pkcs11_cancel_on_failure.patch

b44ac0
--- openjdk/jdk/src/share/classes/sun/security/pkcs11/P11Cipher.java      Mon Aug 31 06:57:19 2020 +0100
b44ac0
+++ openjdk/jdk/src/share/classes/sun/security/pkcs11/P11Cipher.java      Mon Aug 31 15:56:48 2020 -0300
b44ac0
@@ -627,7 +627,7 @@
b44ac0
                 throw (ShortBufferException)
b44ac0
                         (new ShortBufferException().initCause(e));
b44ac0
             }
b44ac0
-            reset(false);
b44ac0
+            reset(true);
b44ac0
             throw new ProviderException("update() failed", e);
b44ac0
         }
b44ac0
     }
b44ac0
@@ -745,7 +745,7 @@
b44ac0
                 throw (ShortBufferException)
b44ac0
                         (new ShortBufferException().initCause(e));
b44ac0
             }
b44ac0
-            reset(false);
b44ac0
+            reset(true);
b44ac0
             throw new ProviderException("update() failed", e);
b44ac0
         }
b44ac0
     }