aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Kartashev <andrey.kartashev@afconsult.com>2018-11-02 18:02:16 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-26 14:42:25 (GMT)
commit52171e18c9d4073915d6070c5662ac54b8413b67 (patch)
treec5b2453bf0eaea905365417a97dfdf8ff6410cb3
parenta6cd1be9574d6b142a25ace38cb8ee111ee43665 (diff)
downloadhostap-52171e18c9d4073915d6070c5662ac54b8413b67.zip
hostap-52171e18c9d4073915d6070c5662ac54b8413b67.tar.gz
hostap-52171e18c9d4073915d6070c5662ac54b8413b67.tar.bz2
mka: Fix a memory leak on error path
Fix a minor memory leak in ieee802_1x_kay_create_mka() in case of KEK/ICK derivation failure. Signed-off-by: Andrey Kartashev <andrey.kartashev@afconsult.com>
-rw-r--r--src/pae/ieee802_1x_kay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pae/ieee802_1x_kay.c b/src/pae/ieee802_1x_kay.c
index 13a806f..afa521e 100644
--- a/src/pae/ieee802_1x_kay.c
+++ b/src/pae/ieee802_1x_kay.c
@@ -3550,6 +3550,7 @@ ieee802_1x_kay_create_mka(struct ieee802_1x_kay *kay,
return participant;
fail:
+ os_free(participant->txsc);
os_free(participant);
return NULL;
}