]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
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 b1a6ff0465a3eb88fa1681c2a1efbfd78365a71d..f70f47ef6c3adb0bdccccdb72f3089fdc614e298 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)