Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLEServer.cpp Fix: Crash on MTU change if m_pServerCallbacks not set. #5603

Merged
merged 1 commit into from
Aug 31, 2021

Conversation

Marcus10110
Copy link
Contributor

@Marcus10110 Marcus10110 commented Aug 28, 2021

Summary

Fix this issue: #5573

To reproduce:

  1. Run any sample code that starts a BLE server, and does not call setCallbacks.
  2. Connect to the device using the "LightBlue" app on iOS.
  3. Observe crash shown in the issue linked above.

Impact

I'm not sure how often the MTU is updated, but the bug should cause a crash in any BLEServer instance, where setCallbacks was not called, if the MTU changes.

Note

I haven't actually built and ran this locally, because I haven't had time to setup for local development. The change is tiny, and very simple, but it's probably always worth testing before merging.

@CLAassistant
Copy link

CLAassistant commented Aug 28, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants