radvd-project / radvd

radvd | Official repository: https://github.com/radvd-project/radvd
https://radvd.litech.org/
Other
203 stars 107 forks source link

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

Closed audreylace closed 11 months ago

audreylace commented 11 months ago

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.

robbat2 commented 11 months ago

Nice catch; will merge after CI passes