Diff between f80a2a57c910c0530632d2caa2dba559d0f7f63c and 229d411e5a71486e62a13365dfc0049a3d930f62
Changed Files
| File | Additions | Deletions | Status |
| emulator/bthost.c | +3 | -0 | modified |
Full Patch
diff --git a/emulator/bthost.c b/emulator/bthost.c
index 79d8305..faabbaa 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -3751,6 +3751,9 @@ void bthost_past_set_info(struct bthost *bthost, uint16_t handle)
{
struct bt_hci_cmd_le_past_set_info cp;
+ if (!bthost)
+ return;
+
memset(&cp, 0, sizeof(cp));
cp.handle = cpu_to_le16(handle);
cp.adv_handle = 0x01;