From 890374118f33a81b9ed961335b70ddd8152b86fc Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Fri, 21 Mar 2014 13:48:05 +0200 Subject: [PATCH] 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 --- wpa_supplicant/dbus/dbus_new_handlers_p2p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c index c96c195e8..08192d1a6 100644 --- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c +++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c @@ -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;