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

Bug fix: Prevent null de-reference when using poll in main_loop #223

Merged

Conversation

audreylace
Copy link
Contributor

@audreylace audreylace commented Dec 8, 2023

Each loop iteration in main_loop sets the tsp pointer to null. This means tsp is not guaranteed to actually point anywhere valid hence we need to check before using it. This is only applicable if ppoll is missing and no interfaces are found to expire.

@audreylace audreylace changed the title Prevent null de-reference when using poll in main_loop Bug fix: Prevent null de-reference when using poll in main_loop Dec 8, 2023
@robbat2
Copy link
Member

robbat2 commented Dec 9, 2023

Nice catch; will merge after CI passes

@robbat2 robbat2 merged commit 1063f61 into radvd-project:master Dec 9, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants