]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix provision discovery response handling in some cases
authorJouni Malinen <j@w1.fi>
Sat, 30 Mar 2013 14:10:43 +0000 (16:10 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 30 Mar 2013 14:10:43 +0000 (16:10 +0200)
commit66f1f751d22d17a572b1d4e615a621fc43082f5e
tree3cb4d2ee3e8b0cca8eed95edecf4d34d24bc98c1
parentb12b7c7a1f3e26da5b32ad87e73327577c2c9fe5
P2P: Fix provision discovery response handling in some cases

Commit 6b56cc2d97fe9efd1feea8d418714b4658b056f1 added a possible call to
p2p_reset_pending_pd() prior to checking config_methods match between
our request and peer response. That reset call could clear
dev->req_config_methods and as such, result in unexpected
P2P-PROV-DISC-FAILURE report here even in cases where the peer accepts
the provision discovery. Fix this by using a local copy of the
req_config_methods variable.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/p2p/p2p_pd.c