mka: Avoid inconsistent state in ieee802_1x_kay_move_live_peer()
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 19 Jul 2016 09:56:54 +0000 (11:56 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 7 Aug 2016 08:34:50 +0000 (11:34 +0300)
commit90bff0e2aa234c62bd216909847cf1d99b9bf1c2
tree9783b15001a88ada1cb6067a096abf75553248bc
parent12447457bf09bc9ba5d1e4a5718cd4298425c435
mka: Avoid inconsistent state in ieee802_1x_kay_move_live_peer()

If the memory allocation in ieee802_1x_kay_init_receive_sc() fails, we
end up in an inconsistent state where the peer is moved to the live
peers list and its sci is setup, but we don't have an rxsc.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
src/pae/ieee802_1x_kay.c