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:
parent
ca0f993358
commit
ff7a581d36
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user