mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
tools/l2cap-tester: Fix checking for NULL test data
This commit is contained in:
parent
e7bb627371
commit
1189258e8e
@ -689,7 +689,7 @@ static void setup_powered_client(const void *test_data)
|
||||
|
||||
tester_print("Powering on controller");
|
||||
|
||||
if (test->expect_cmd || test->send_cmd) {
|
||||
if (test && (test->expect_cmd || test->send_cmd)) {
|
||||
struct bthost *bthost = hciemu_client_get_host(data->hciemu);
|
||||
bthost_set_connect_cb(bthost, send_rsp_new_conn, data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user