3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-24 15:22:34 +01:00

eapol: Return if eapol_find_sm returns NULL

This commit is contained in:
Ravi kumar Veeramally 2015-03-23 23:06:11 +02:00 committed by Denis Kenzior
parent a95b0e3a5a
commit 3432cfa53e

View File

@ -785,6 +785,8 @@ void __eapol_rx_packet(uint32_t ifindex, const uint8_t *spa, const uint8_t *aa,
return; return;
sm = eapol_find_sm(ifindex, spa, aa); sm = eapol_find_sm(ifindex, spa, aa);
if (!sm)
return;
/* Wrong direction */ /* Wrong direction */
if (!ek->key_ack) if (!ek->key_ack)