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
1 changed files with 2 additions and 0 deletions

View File

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