Fixed wifi_direct_foreach_connected_peers() API calling malloc(0) 97/56297/1
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 6 Jan 2016 05:33:34 +0000 (11:03 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 6 Jan 2016 05:33:34 +0000 (11:03 +0530)
commitebfc390d3004f3bfb7a15a8cd6740ef38a144a8e
tree648edecf222ff255416fa771a42076709bcf0d2f
parent8dcee7c86c94edcc3b4ddb1cdc5295a55c8496a3
Fixed wifi_direct_foreach_connected_peers() API calling malloc(0)

This patch fixes behaiour of wifi_direct_foreach_connected_peers() API
when no connected peer at that time malloc(0) call was made and
WIFI_DIRECT_OPERATION_FAILED was returned.
But when no peer is conencted, at that time WIFI_DIRECT_ERROR_NONE
should be returned and no malloc(0) call should be done.

Change-Id: I266063ae0ecadef9b4c3959cd3bf69bb4bb886de
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/capi-network-wifi-direct.spec
src/wifi-direct-client-proxy.c