Diff between e7bb627371b49b24aef0df78ecb9a6b2d7761a61 and 1189258e8ee6348ae8085803b85bb7685323635f
Changed Files
| File | Additions | Deletions | Status |
| tools/l2cap-tester.c | +1 | -1 | modified |
Full Patch
diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c
index 8385941..1f73047 100644
--- a/tools/l2cap-tester.c
+++ b/tools/l2cap-tester.c
@@ -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);
}