diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-10-22 14:03:58 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-10-22 15:10:15 +0300 |
commit | ffd32c71e47e1706d31eae95eaca654cc5ee0f7b (patch) | |
tree | 4962ccc980bef8d550d90778bb2fc56af95d465f /android/hal-ipc.c | |
parent | 4299561dda7192709f44e368e89f95b380c5c50d (diff) | |
download | bluez-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.c | 1 |
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; } |