Diff between ed78d12fe9784cd5d861d826b671795ad01d1873 and 85afc7c241689e022cd83225a21854cc422170e0
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 277be8c..3ffe283 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);