summaryrefslogtreecommitdiff
path: root/src/p2p/p2p_pd.c
diff options
context:
space:
mode:
authorAndrej Shadura <andrewsh@debian.org>2018-05-07 19:18:59 +0200
committerAndrej Shadura <andrewsh@debian.org>2018-05-07 19:18:59 +0200
commit1c66e25ec3baa25f8fe09f3f240b620a004e7026 (patch)
tree61b44f30cc85673e26ba789d75a2dfe267bd0ba0 /src/p2p/p2p_pd.c
parent1e2b7568b4f69a9da79de660a1a04ef077479628 (diff)
New upstream version 2.7~git20180504+60a5737
Diffstat (limited to 'src/p2p/p2p_pd.c')
-rw-r--r--src/p2p/p2p_pd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/p2p/p2p_pd.c b/src/p2p/p2p_pd.c
index 93a0535..3994ec0 100644
--- a/src/p2p/p2p_pd.c
+++ b/src/p2p/p2p_pd.c
@@ -1163,6 +1163,9 @@ out:
msg.group_id, msg.group_id_len);
}
+ if (reject != P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE)
+ p2ps_prov_free(p2p);
+
if (reject == P2P_SC_SUCCESS) {
switch (config_methods) {
case WPS_CONFIG_DISPLAY:
@@ -1581,7 +1584,7 @@ out:
report_config_methods);
if (p2p->state == P2P_PD_DURING_FIND) {
- p2p_clear_timeout(p2p);
+ p2p_stop_listen_for_freq(p2p, 0);
p2p_continue_find(p2p);
}
}