P2P: Stop early when processing not-persistent invitation result

This commit is contained in:
Jouni Malinen 2010-06-27 00:27:08 -07:00 committed by Jouni Malinen
parent 2e062d5d74
commit 706887fc28

View file

@ -1830,6 +1830,9 @@ static void wpas_invitation_result(void *ctx, int status, const u8 *bssid)
"status=%d ", status); "status=%d ", status);
} }
if (wpa_s->pending_invite_ssid_id == -1)
return; /* Invitation to active group */
if (status != P2P_SC_SUCCESS) { if (status != P2P_SC_SUCCESS) {
wpas_p2p_remove_pending_group_interface(wpa_s); wpas_p2p_remove_pending_group_interface(wpa_s);
return; return;