Blame SOURCES/rh1868754-pkcs11_cancel_on_failure.patch

08628f
diff -r e10f558e1df5 openjdk/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11Cipher.java
08628f
--- openjdk/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11Cipher.java	Mon Aug 31 16:12:32 2020 +0100
08628f
+++ openjdk/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11Cipher.java	Mon Aug 31 15:17:50 2020 -0300
08628f
@@ -628,7 +628,7 @@
08628f
                 throw (ShortBufferException)
08628f
                         (new ShortBufferException().initCause(e));
08628f
             }
08628f
-            reset(false);
08628f
+            reset(true);
08628f
             throw new ProviderException("update() failed", e);
08628f
         }
08628f
     }
08628f
@@ -746,7 +746,7 @@
08628f
                 throw (ShortBufferException)
08628f
                         (new ShortBufferException().initCause(e));
08628f
             }
08628f
-            reset(false);
08628f
+            reset(true);
08628f
             throw new ProviderException("update() failed", e);
08628f
         }
08628f
     }