P2P: Decrement sd_pending_bcast_queries when sd returns success
authorConstantin Musca <constantin.musca@intel.com>
Mon, 22 Sep 2014 12:00:37 +0000 (15:00 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 28 Sep 2014 08:03:48 +0000 (11:03 +0300)
commit7139cf4a4f1fecfd03d0daff9bb33adb80cc3530
tree36f7ae6bdcaaad4dc55e018ae02ea87d590414ca
parentdbdc9a1d481d4820c4369e213a0bcf12f3bd57f4
P2P: Decrement sd_pending_bcast_queries when sd returns success

The sd_pending_bcast_queries variable should be decremented only
in case of success. This way, the supplicant can retry if a service
discovery request fails.

Signed-off-by: Constantin Musca <constantin.musca@intel.com>
src/p2p/p2p.c
src/p2p/p2p_sd.c