]> git.ipfire.org Git - thirdparty/hostap.git/commit
GAS: Do not select pending query that has not yet been sent
authorJouni Malinen <jouni.malinen@oss.qualcomm.com>
Thu, 28 Aug 2025 08:29:24 +0000 (11:29 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 28 Aug 2025 08:29:24 +0000 (11:29 +0300)
commitebb0cf919c466463640d17c00ad0ee2caae17e13
tree6250e3f3d6d215500b962889f1401fcfe767fbfa
parentce011453ee759faf4e478843fc588d888faa7133
GAS: Do not select pending query that has not yet been sent

An unexpected GAS response for a query that was scheduled to be sent,
but not yet actually transmitted, could result in unexpected behavior.
This could end up selecting the pending query for which the radio work
had not yet been started when processing the received frame and that
could result in freeing the pending query but not being able to
terminate the radio work that still has a reference to the pending
query.

Do not allow a pending GAS query to match a received frame if that query
has not yet been transmitted to avoid this corner case.

Signed-off-by: Jouni Malinen <jouni.malinen@oss.qualcomm.com>
wpa_supplicant/gas_query.c