Blame SOURCES/rh1868759-pkcs11_cancel_on_failure.patch

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