[PATCH] wpa_supplicant: Fix crash when terminating all interfaces

Jouni Malinen j at w1.fi
Tue Dec 24 02:48:13 EST 2013


On Sun, Dec 15, 2013 at 10:50:07AM +0200, Ilan Peer wrote:
> In wpa_supplicant_terminate_proc(), while iterating and
> terminating interfaces, after an interface is terminated
> we can no longer access its memory as it is no longer valid
> and causes a crash.
> 
> Fix this by saving the pointer to the next interface before freeing
> the current one to avoid accessing an invalid memory location.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list