Blame SOURCES/rh1868759-pkcs11_cancel_on_failure.patch

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