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); } }