madwifi session timeout causing seg. fault

Jouni Malinen jkmaline at cc.hut.fi
Tue Jan 16 11:15:38 EST 2007


On Mon, Jan 15, 2007 at 01:56:19PM -0700, Ahmet Basagalar wrote:

> We have been getting some segmentation faults on the hostapds that we are 
> using with madwifi driver. I have found that this is because of the fact 
> that session timeouts are not being cancelled although the stations are 
> freed. I added
> 
> eloop_cancel_timeout(ap_handle_session_timer, hapd, sta);
> 
> to the ap_free_sta function in sta_info.c and that fixed the issue. I am no 
> longer getting seg. faults. (Also you will need to declare 
> eloop_cancel_timeout somewhere before ap_free_sta)

Yes, this was fixed in 0.5.x branch and I believe I already merged the
fix into 0.4.x branch for 0.4.10 release. In other words, the latest
0.4.x snapshot should have the fix (and if not, I would like to hear
about it so that the issue can be resolved before the release).

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the HostAP mailing list