diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-09-18 17:13:14 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-09-18 17:13:14 +0300 |
commit | 125af7e120a3b92616d5e2525290ea9a73f89429 (patch) | |
tree | 43da913fa8bbf283e49115b0887de11208b7847b /emulator/btdev.c | |
parent | 47d4e6cb62992134cc5388ad6195667c4b25502a (diff) | |
download | bluez-125af7e120a3b92616d5e2525290ea9a73f89429.tar.gz |
emulator/btdev: Fix invalid memory access
Diffstat (limited to 'emulator/btdev.c')
-rw-r--r-- | emulator/btdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c index b763c7358..a42cb7645 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -680,8 +680,8 @@ static void send_cmd(struct btdev *btdev, uint8_t evt, uint16_t opcode, iov2[2 + i].iov_len = iov[i].iov_len; } - if (run_hooks(btdev, BTDEV_HOOK_POST_CMD, opcode, iov[i].iov_base, - iov[i].iov_len)) + if (run_hooks(btdev, BTDEV_HOOK_POST_CMD, opcode, iov[i -1].iov_base, + iov[i -1].iov_len)) send_packet(btdev, iov2, 2 + iovlen); } |