mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 09:14:03 -05:00
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>
This commit is contained in:
parent
a6cd1be957
commit
52171e18c9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user