diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-09-16 11:30:19 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-09-16 12:02:33 +0300 |
commit | 2446ebdf6983993b10b0255e9fa85b2979bb3067 (patch) | |
tree | d5025ead48a8e484789446d7b49b60c5931645e7 /tools/l2cap-tester.c | |
parent | ecf2d2c6a3c6e8a04408f566fbc06297161942ec (diff) | |
download | bluez-2446ebdf6983993b10b0255e9fa85b2979bb3067.tar.gz |
tools: Fix dereference before NULL check
Diffstat (limited to 'tools/l2cap-tester.c')
-rw-r--r-- | tools/l2cap-tester.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c index 3f6dd2986..b8b740c6a 100644 --- a/tools/l2cap-tester.c +++ b/tools/l2cap-tester.c @@ -673,7 +673,7 @@ static void setup_powered_common(void) data->mgmt_index, pin_code_request_callback, data, NULL); - if (test->client_io_cap) + if (test && test->client_io_cap) bthost_set_io_capability(bthost, test->client_io_cap); if (test && test->client_pin) |