From: Andreas Steffen Date: Tue, 2 Nov 2010 09:46:30 +0000 (+0100) Subject: two fixes in tnccs_11 X-Git-Tag: 4.5.1~567 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49a9028201f3d2be9b3b7e640eae5de65ce9b5cd;p=thirdparty%2Fstrongswan.git two fixes in tnccs_11 --- diff --git a/src/libcharon/plugins/tnccs_11/tnccs_11.c b/src/libcharon/plugins/tnccs_11/tnccs_11.c index 704bf64ed5..b321c2671f 100644 --- a/src/libcharon/plugins/tnccs_11/tnccs_11.c +++ b/src/libcharon/plugins/tnccs_11/tnccs_11.c @@ -242,7 +242,8 @@ METHOD(tls_t, is_complete, bool, ike_sa_t *ike_sa; auth_cfg_t *auth; - if (libtnc_tncs_HaveRecommendation(this->tncs_connection, &rec, &eval) == + if (this->is_server && + libtnc_tncs_HaveRecommendation(this->tncs_connection, &rec, &eval) == TNC_RESULT_SUCCESS) { switch (rec) @@ -299,7 +300,6 @@ METHOD(tls_t, destroy, void, { libtnc_tncc_DeleteConnection(this->tncc_connection); } - libtnc_tncc_Terminate(); } free(this); }