From d669b4ac5ea31b16643f6d7a7b9fa21b87cf456e Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 15 2020 23:18:30 +0000 Subject: Apply patch rh1868759-pkcs11_cancel_on_failure.patch patch_name: rh1868759-pkcs11_cancel_on_failure.patch present_in_specfile: true no_prefix: true --- diff --git a/openjdk/jdk/src/share/classes/sun/security/pkcs11/P11Cipher.java b/openjdk/jdk/src/share/classes/sun/security/pkcs11/P11Cipher.java index 9837f12..f93610c 100644 --- a/openjdk/jdk/src/share/classes/sun/security/pkcs11/P11Cipher.java +++ b/openjdk/jdk/src/share/classes/sun/security/pkcs11/P11Cipher.java @@ -627,7 +627,7 @@ final class P11Cipher extends CipherSpi { throw (ShortBufferException) (new ShortBufferException().initCause(e)); } - reset(false); + reset(true); throw new ProviderException("update() failed", e); } } @@ -745,7 +745,7 @@ final class P11Cipher extends CipherSpi { throw (ShortBufferException) (new ShortBufferException().initCause(e)); } - reset(false); + reset(true); throw new ProviderException("update() failed", e); } }