eap-tnc: Free eap-tnc object if IKE_SA not found to get IPs
authorTobias Brunner <tobias@strongswan.org>
Wed, 25 Mar 2015 12:24:37 +0000 (13:24 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 25 Mar 2015 12:24:37 +0000 (13:24 +0100)
src/libcharon/plugins/eap_tnc/eap_tnc.c

index b1a6ff0..f70f47e 100644 (file)
@@ -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)