dbus: Cancelling a service request always reply by an error

p2p_sd_cancel_request returns -1 in case of error, so does
wpas_p2p_sd_cancel_request.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2014-03-21 13:48:05 +02:00 committed by Jouni Malinen
parent 13494c4478
commit 890374118f

View File

@ -2415,7 +2415,7 @@ DBusMessage * wpas_dbus_handler_p2p_service_sd_cancel_req(
if (req == 0)
goto error;
if (!wpas_p2p_sd_cancel_request(wpa_s, req))
if (wpas_p2p_sd_cancel_request(wpa_s, req) < 0)
goto error;
return NULL;