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:
parent
13494c4478
commit
890374118f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue