mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
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
@ -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 New Issue
Block a user