blob: 14d2677cb9d3261a18d79c4568439764ef8824d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- bluez-pin-0.30.orig/pin-dbus.c
+++ bluez-pin-0.30/pin-dbus.c
@@ -71,8 +71,8 @@
DBusHandlerResult
bluez_pin_handle_dbus_request (DBusConnection *connection, DBusMessage *message)
{
- DBusMessageIter iter;
- gboolean out;
+ DBusMessageIter iter, aiter;
+ dbus_bool_t out;
bdaddr_t bdaddr, sbdaddr;
int type;
char *address;
@@ -109,8 +109,10 @@
#ifdef HAVE_DBUS_MESSAGE_ITER_GET_BASIC
nbytes = 0;
- if (type == DBUS_TYPE_ARRAY)
- dbus_message_iter_get_fixed_array (&iter, &bytes, &nbytes);
+ if (type == DBUS_TYPE_ARRAY) {
+ dbus_message_iter_recurse(&iter, &aiter);
+ dbus_message_iter_get_fixed_array (&aiter, &bytes, &nbytes);
+ }
if (nbytes != sizeof (bdaddr))
#else
if (type != DBUS_TYPE_ARRAY
|