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

eap: Don't destroy method on completion

Let the upper layers decide what to do when a method completes
This commit is contained in:
Denis Kenzior 2018-05-30 22:22:07 -05:00
parent ca0f993358
commit ff7a581d36

View File

@ -359,11 +359,6 @@ void eap_rx_packet(struct eap_state *eap, const uint8_t *pkt, size_t len)
*/
return;
if (eap->method_state && eap->method->free)
eap->method->free(eap);
eap->method = NULL;
eap->complete(code == EAP_CODE_SUCCESS ? EAP_RESULT_SUCCESS :
EAP_RESULT_FAIL, eap->user_data);
return;