]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Clear P2PS provision state on P2P flush
authorArik Nemtsov <arik@wizery.com>
Tue, 18 Oct 2016 09:44:14 +0000 (12:44 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 28 Oct 2016 21:55:49 +0000 (00:55 +0300)
Otherwise, if a P2PS provision is incomplete before the flush, it can
cause incorrect provision responses to be sent out.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
src/p2p/p2p.c

index 996b4e824986300d87b1e2a6dc32bb078a5cc329..cdf6d9915fdbba6206e67b659b56a74ddd2d1bab 100644 (file)
@@ -3022,6 +3022,8 @@ void p2p_flush(struct p2p_data *p2p)
        os_free(p2p->after_scan_tx);
        p2p->after_scan_tx = NULL;
        p2p->ssid_set = 0;
+       p2ps_prov_free(p2p);
+       p2p_reset_pending_pd(p2p);
 }