Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8203182

Release session if initialization of SunPKCS11 Signature fails

XMLWordPrintable

    • b17
    • generic
    • generic
    • Not verified

        If initializing a SunPKCS11 Signature fails because C_SignInit or C_VerifyInit functions throw a PKCS11Exception exception, allocated session is not released. If this happens multiple times, token resources may be exhausted leading to an error. It's suggested to implement the same idiom as for SunPKCS11 Cipher objects. That is: release the session if initialization fails.

        Bug originally reported by: Hemant B Khot

              valeriep Valerie Peng
              mbalao Martin Balao Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: