Diff between 7f33939401667f198a406de6d7e0d482be8d930b and 8a5b3e7ff48a64b821dda90a50472a6abb65138f
Changed Files
| File | Additions | Deletions | Status |
| tools/mgmt-tester.c | +1 | -1 | modified |
Full Patch
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index c518e47..34c8e1b 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -2646,7 +2646,7 @@ static void test_setup(const void *test_data)
const struct generic_data *test = data->test_data;
const uint16_t *cmd;
- if (test->pin) {
+ if (test && test->pin) {
struct bthost *bthost = hciemu_client_get_host(data->hciemu);
bthost_set_pin_code(bthost, test->pin, test->pin_len);