libtpmtss: TCTI finalization call changed
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 25 Aug 2016 11:22:34 +0000 (13:22 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 25 Aug 2016 11:22:51 +0000 (13:22 +0200)
src/libtpmtss/tpm_tss_tss2.c

index 80c4388..d0f76ac 100644 (file)
@@ -276,7 +276,8 @@ static void finalize_context(private_tpm_tss_tss2_t *this)
 {
        if (this->tcti_context)
        {
-               TeardownSocketTcti(this->tcti_context);
+               tss2_tcti_finalize(this->tcti_context);
+               free(this->tcti_context);
        }
        if (this->sys_context)
        {