Parent: 257dfac984e9233786e1254f7f5c19a92774bdad
Author: Johan Hedberg <johan.hedberg@intel.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-06-10 13:27:55
Tree: d370ae169f599491126bbe5d747f8153c88b6bc1
input: Fix access to uninitialized data when authorizing connections There were bt_io_get() failure code paths in two places that would access "src" and "dst" when they are uninitialized. This would happen e.g. if the HID device disconnects before we've authorized the connection. To fix this we now save the remote address in a more complete confirm context and use the source address already available in the server context.
Diffstat
| M | profiles/input/server.c | | | 45 | +++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - |
1 files changed, 23 insertions(+), 22 deletions(-)