7612e65b9b
secy_init_macsec() can fail (if ->macsec_init fails), and ieee802_1x_kay_init() should handle this and not let MKA run any further, because nothing is going to work anyway. On failure, ieee802_1x_kay_init() must deinit its kay, which will free kay->ctx, so ieee802_1x_kay_init callers (only ieee802_1x_alloc_kay_sm) must not do it. Before this patch there is a double-free of the ctx argument when ieee802_1x_kay_deinit() was called. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> |
||
---|---|---|
.. | ||
ieee802_1x_cp.c | ||
ieee802_1x_cp.h | ||
ieee802_1x_kay.c | ||
ieee802_1x_kay.h | ||
ieee802_1x_kay_i.h | ||
ieee802_1x_key.c | ||
ieee802_1x_key.h | ||
ieee802_1x_secy_ops.c | ||
ieee802_1x_secy_ops.h | ||
Makefile |