summaryrefslogtreecommitdiff
path: root/src/eap_peer/tncc.c
diff options
context:
space:
mode:
authorStefan Lippers-Hollmann <s.l-h@gmx.de>2014-10-14 12:39:25 +0000
committerAndrew Shadura <andrewsh@debian.org>2016-07-20 23:23:37 +0200
commit6e1f9c092d6958a8a1c01629f43941647dc7fc20 (patch)
treecf3c0e907680dcc04786ee490c8b6227abfc5c02 /src/eap_peer/tncc.c
parent7ea3403faef12dfe4f6ee746c3e21306b4dc4460 (diff)
Imported Upstream version 2.3
Diffstat (limited to 'src/eap_peer/tncc.c')
-rw-r--r--src/eap_peer/tncc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/eap_peer/tncc.c b/src/eap_peer/tncc.c
index 5b1a2d4..7ca956e 100644
--- a/src/eap_peer/tncc.c
+++ b/src/eap_peer/tncc.c
@@ -1092,8 +1092,10 @@ static int tncc_read_config(struct tncc_data *tncc)
int error = 0;
imc = tncc_parse_imc(pos + 4, line_end, &error);
- if (error)
+ if (error) {
+ os_free(config);
return -1;
+ }
if (imc) {
if (last == NULL)
tncc->imc = imc;