segfault in wpa_ctrl_request

Jouni Malinen j at w1.fi
Fri Jan 15 10:31:00 PST 2016


On Fri, Jan 15, 2016 at 01:19:12PM -0500, marc miller wrote:
> There are two threads in this process. Should i serialize access to
> wpa_ctrl_request() ?
> 
> Every time i make the call to that function i open and close the ctrl
> interface (wpa_ctrl_open ), i can probably use a mutex alongside it.
> Any chances that can help ?

Yes, you will need to do such protection when using wpa_ctrl.c since
there is no support for concurrency within the wpa_ctrl_*() functions.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list