P2PS: Fix PD Request parameter handling
authorMax Stepanov <Max.Stepanov@intel.com>
Thu, 8 Oct 2015 09:36:02 +0000 (12:36 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Oct 2015 18:42:03 +0000 (21:42 +0300)
commitecf56c7270aa3f1672e139d3baedc2394874758b
tree5a5f674f2935bdcbb272bc9622633d965ca1e996
parent8bb8e6edb829c454d68fc06886e0a572ab7de404
P2PS: Fix PD Request parameter handling

In P2PS PD Request processing in some error case scenarios, such as
verification of the WPS config method, the flow aborts before saving
mandatory P2PS PD Request attributes. This in turn causes the control
interface notification events to be sent with invalid parameters.

Fix this by changing the order of verification and processing steps of
the PD Request message handling.

Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
src/p2p/p2p_pd.c