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

Bluetooth: Zero-initialize adv params #24547

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

trond-snekvik
Copy link
Contributor

After #22013, bt_le_adv_param got additional fields which were passed to
the bluetooth API uninitialized in the BT Mesh module. This
zero-initializes the entire structure in all usages to avoid passing
uninitialized data now and in the future.

Signed-off-by: Trond Einar Snekvik Trond.Einar.Snekvik@nordicsemi.no

After zephyrproject-rtos#22013, bt_le_adv_param got additional fields which were passed to
the bluetooth API uninitialized in the BT Mesh module. This
zero-initializes the entire structure in all usages to avoid passing
uninitialized data now and in the future.

Signed-off-by: Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
@jhedberg jhedberg added area: Bluetooth area: Bluetooth Mesh Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. labels Apr 21, 2020
@carlescufi carlescufi merged commit e5d9291 into zephyrproject-rtos:master Apr 21, 2020
@trond-snekvik trond-snekvik deleted the adv_null_peer branch July 23, 2021 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Mesh area: Bluetooth Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants