diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-11-12 14:45:59 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-11-12 14:45:59 +0200 |
commit | 85afc7c241689e022cd83225a21854cc422170e0 (patch) | |
tree | 59725c045e7b4fd9f48ab97c8252483bd1dabb05 /tools/l2cap-tester.c | |
parent | ed78d12fe9784cd5d861d826b671795ad01d1873 (diff) | |
download | bluez-85afc7c241689e022cd83225a21854cc422170e0.tar.gz |
tools/l2cap-tester: Fix NULL-dereference for tests with no data
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 277be8c26..3ffe28377 100644 --- a/tools/l2cap-tester.c +++ b/tools/l2cap-tester.c @@ -794,7 +794,7 @@ static void setup_powered_client(const void *test_data) bthost_set_connect_cb(bthost, send_rsp_new_conn, data); } - if (test->direct_advertising) + if (test && test->direct_advertising) mgmt_send(data->mgmt, MGMT_OP_SET_ADVERTISING, data->mgmt_index, sizeof(param), param, NULL, NULL, NULL); |