Diff between 0852ad0a90c55132b00eb95742d2bdf1e0756d67 and 651090b3e564603b87fbfde21875a3e3aedf2820

Changed Files

File Additions Deletions Status
obexd/client/map.c +4 -2 modified

Full Patch

diff --git a/obexd/client/map.c b/obexd/client/map.c
index 319d60e..df2b0bf 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
@@ -574,10 +574,12 @@ static void set_status(const GDBusPropertyTable *property,
 	GObexApparam *apparam;
 	char contents[2];
 
-	if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_BOOLEAN)
-		return g_dbus_pending_property_error(id,
+	if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_BOOLEAN) {
+		g_dbus_pending_property_error(id,
 					ERROR_INTERFACE ".InvalidArguments",
 					"Invalid arguments in method call");
+		return;
+	}
 
 	dbus_message_iter_get_basic(iter, &value);