From: Tobias Brunner Date: Wed, 25 Mar 2015 12:24:37 +0000 (+0100) Subject: eap-tnc: Free eap-tnc object if IKE_SA not found to get IPs X-Git-Tag: 5.3.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=328db935bb16a17654a66bc4e8a1f3365153b23e;p=thirdparty%2Fstrongswan.git eap-tnc: Free eap-tnc object if IKE_SA not found to get IPs --- diff --git a/src/libcharon/plugins/eap_tnc/eap_tnc.c b/src/libcharon/plugins/eap_tnc/eap_tnc.c index b1a6ff0465..f70f47ef6c 100644 --- a/src/libcharon/plugins/eap_tnc/eap_tnc.c +++ b/src/libcharon/plugins/eap_tnc/eap_tnc.c @@ -311,6 +311,7 @@ static eap_tnc_t *eap_tnc_create(identification_t *server, { DBG1(DBG_TNC, "%N constructor did not find IKE_SA", eap_type_names, type); + free(this); return NULL; } if (is_server)