Blame SOURCES/rh1868754-pkcs11_cancel_on_failure.patch

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