summaryrefslogtreecommitdiff
path: root/android/hal-ipc.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-10-22 14:03:58 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-10-22 15:10:15 +0300
commitffd32c71e47e1706d31eae95eaca654cc5ee0f7b (patch)
tree4962ccc980bef8d550d90778bb2fc56af95d465f /android/hal-ipc.c
parent4299561dda7192709f44e368e89f95b380c5c50d (diff)
downloadbluez-ffd32c71e47e1706d31eae95eaca654cc5ee0f7b.tar.gz
android/hal: Fix receiving of commands with no response parameter
This fix receiving of error response in case command has no reply parameters.
Diffstat (limited to 'android/hal-ipc.c')
-rw-r--r--android/hal-ipc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/hal-ipc.c b/android/hal-ipc.c
index 8d40271a4..9aac9c0de 100644
--- a/android/hal-ipc.c
+++ b/android/hal-ipc.c
@@ -153,6 +153,7 @@ int hal_ipc_cmd(uint8_t service_id, uint8_t opcode, uint16_t len, void *param,
if (!rsp || rsp_len == 0) {
memset(&err, 0, sizeof(err));
+ rsp_len = sizeof(err);
rsp = &err;
}