summaryrefslogtreecommitdiff
path: root/android/ipc.c
diff options
context:
space:
mode:
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>2014-01-12 23:22:18 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-01-13 08:57:49 +0100
commitbee4fe3c787118f3e20b152484ee68b613065bfc (patch)
tree3185aa42edc8b27f4eb2d31ac0f0c9c3465a3db9 /android/ipc.c
parent84a8ca8d818a857fa408b89a63c96136330445cd (diff)
downloadbluez-bee4fe3c787118f3e20b152484ee68b613065bfc.tar.gz
android/ipc: Use proper handlers in ipc_handle_msg
ipc_handle_msg() should use handlers passed as function parameter instead of static one as otherwise Audio IPC will use incorrect handlers.
Diffstat (limited to 'android/ipc.c')
-rw-r--r--android/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/ipc.c b/android/ipc.c
index a31d3152f..ed3ef3c0f 100644
--- a/android/ipc.c
+++ b/android/ipc.c
@@ -82,7 +82,7 @@ int ipc_handle_msg(struct service_handler *handlers, size_t max_index,
}
/* opcode is table offset + 1 */
- handler = &services[msg->service_id].handler[msg->opcode - 1];
+ handler = &handlers[msg->service_id].handler[msg->opcode - 1];
/* if payload size is valid */
if ((handler->var_len && handler->data_len > msg->len) ||